I have already build a db and page that displays all the records in the table. But I am having a bugger of a time finding the right statements to just pull results for a single record over to another page.
I already have a $var passing through the URL to the new page (moreinfo.php). I really just need the MySQL statement. This is what I have now but it's not working.
<?php
global $HTTP_GET_VARS;
$event = $HTTP_GET_VARS['event'];
mysql_connect(localhost,$user,$pass);
$result = mysql_db_query("thinktpc","SELECT * FROM events WHERE (event_id = '$event')");
echo "Event Name: $event_name<br>\n";
."Event Description: $event_desc<br>\n";
."Start Date: $start_date<br>\n";
."Event Ends: $end_date<br>\n";
?>
I get no errors but ZERO results with above.
Thanks for any and all help.
Jim