How to use different URLs and get information from them [duplicate]

2

I have a database with the following

ID Nome
1  A
2  B
3  C

I would like that when accessing www.example.com/perfil.php take all the information and print on the screen, however when accessing www.example.com/2/B or www.example.com/1/A just take this information and print it on the screen.

    
asked by anonymous 27.05.2015 / 14:43

1 answer

0

A full explanation can be found here

link

Correcting your question by what I understand you do not need to be past the two values just one would be enough. For example. www.site.com/2 - > Would return all user information of name B or www.site.com/B would also retrieve information from the same correct user?

Because if you pass a number you would do a search based on Identifier and in case an Alpha is passed (letters and numbers) you would recover the profile by the username.

Search Google Rewrite_mod which is an apache module.

    
27.05.2015 / 15:22