I'm new to this and after searching for awhile, I thought I'd ask.
I've created a very basic search function which calls up the title names of the topics covered in a MySQL database through Ajax/jQuery.
I'm trying to now create a link so that if you want to learn more about the topic, then you can click and go to the detailed MySQL database record which has a lot more information.
Right now my search.php has the following:
if (mysql_num_rows($result) > 0){
while($row = mysql_fetch_object($result)){
$string .= "<b>".$row->title."</b>";
$string .= "<br/>\n";
The database has the following fields: title, subtitle01, subtext01, subtitle02, subtext02 and post_ID
I would like to add another string that would recognize the post_id that the title is based on and then create a link to view the details (which would display all the fields) on a new php page. Any thoughts on how to do this?