php - Click the data retrieved after While loop and getting extra information again from database -
here problem help.
- using while loop, extracted 'name' , 'designation' of employees database table (using php script)
- the html shows retrieved data list.
- i tagged 'name' data href link inside php script inside while loop. intention when click each 'name' link, must rest of information 'qualification', 'dt of birth','current_work' etc etc database of particular 'name'.
can please me or refer example online?
based on asked, pass person's name(or whatever primary key) or ever in link, , in page fetches details, use person's name/your primary key fetch details.
edit:
for example give link person's name like:
<a href="yoursite.com/getdetails.php?key=yourkey">name</a>
replace yourkey whatever want pass primarykey. , in getdetails.php
use key received , fetch data database.
edit-2
you can fetch key in getdetails.php
using $_get["key"]
Comments
Post a Comment