php - Click the data retrieved after While loop and getting extra information again from database -


here problem help.

  1. using while loop, extracted 'name' , 'designation' of employees database table (using php script)
  2. the html shows retrieved data list.
  3. 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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -