I have a database that a user can search using 5 different fields. The more information that is given the more specific the search becomes. However the less information that is given the broader the search is which in turn displays all the results for the given information. What I’m trying to do is when the information is displayed the user can click one of the results and it will give them all the information pertaining to that entry. What I need help with is how do I turn the clicked on information into a new specific SQL search and display all the information for that table row?
Share
Well each record you display should have a link that a user can click on to go to a page with more detail.
echo '<a href="info.php?id='.$row['id'].'">'.$row['name'].'</a>';From there, get the
idoninfo.phpThis is just a guideline. You’re open to sql injection.