Hi all, currently being taught PHP in Computing at school and been set a task to do.
I've grasped it all pretty quickly, but now I'm stuck!
I have a database full of people's names and addresses etc. and need to create a drop down menu of their names, hit a search button, and for all their details to come up. I have all the names in the drop down menu and then I've managed to split that back into Forename and Surname using so I am able to do... WHERE Forename = $find_forename AND Surname = $find_surname (as putting them together into a drop down menu merges them together so it no longer knows that it's 2 different parts).
I'm not sure how to pull out the data of that one person however, as I already have accessed the database in order to display their names, if that makes sense. So I need to hit the search button, then have my code pull out that one person's data and display that, with the drop down menu still showing.
If someone could explain where I'm going wrong or what needs to be done, would be much appreciated!
I don't know if that makes sense or not, probably not!
Thanks in advance.