I have a user registration system. The person inserts some information like user, photo, name, a brief personal presentation, phone, and email. An id is automatically generated for each new entry. Until now it is already running correctly.
I need it to be possible for anyone to access something like site.com/?p=joaozinho or site.com/?p=123, being 123 the id of Joaozinho, and then the page that opens to connect with the database and display the requested user information on the page, as in the following photo:
Thisisthe"code" that would represent Johnny's page.
<html>
<body>
<img src="img/joaozinho.jpg">
<h2>Joãozinho</h2>
<h3>Sou um cara legal!</h3>
<h3>9999-8888</h3>
<h3>[email protected]</h3>
</body>
</html>