how to load data from a page according to the clicked ID? [closed]

1

What I want is very simple, I want you to click on the name of the person, load another page with the complete data of the person according to the data clicked previously and there I can edit the data of that person and save on that person in the MYSQL Database.

    
asked by anonymous 22.01.2017 / 14:44

1 answer

2

A simple and unprocessed method, you use the $_GET method. You can go through the link as follows:

<a href="pagina.php?id=5"><a/>

This 5 in this case is your id, which you will recover on the other page as follows. In pagina.php , you would do:

$id=$_GET['id'];

I hope I have helped!

    
22.01.2017 / 15:29