Hi all.
I have a php file that lists records from a table. Each record has a link next to it to /update.php?id=#. I have the update.php file but I can't get it to display the correct record. My question is:
How do I pass the id=# to a query in update.php? This is the beginning of the update.php file
<?
$dbcnx = @mysql_connect("**", "*", "");
if (!$dbcnx)
{
echo( "<p>Unable to connect to the " .
"database server at this time.</p>" );
exit();
}
if (! @mysql_select_db("*") )
{
echo( "<p>Unable to locate the " .
"database at this time.</p>" );
exit();
}
$result = @("SELECT FROM tbl** WHERE This is where I want to pass the id ");
if (!$result)
{
echo("<p>Error performing query: " . mysql_error() . "</p>");
exit();
}
Any response will be greatly appreciated.