Hello all,
I would appreciate any help on this since I am new to php. Thanks in advance.
My users can search a database for a last name, since there are many same last names in my DB I want my user to be able to choose from the results list the actual name they want and then display the persons details to them.
For example my quesry is the following:
$query=("SELECT name, last_name, gender, fathers_name, mothers_name, dob, insurance);
First I want to display the list of results with only the name, last_name, and fathers name to the screen and let the user click on the name they want and then display the rest of the information (ie mothers name, dob, insurance etc).
The output data should be something like this:
Lastname, Name, Fathers Name
Smith John, James
Smith Jim, Bob
Smith Jane, Henry
When a user click on a name above then the detailed info for that name will display like:
Lastname, Name, Fathers Name, mothers name, dob, insurance
Thanks in advance for any help