JPERKS1985
asked on
Select by primary key MYSQL
I'm trying to select a data row by primary key,
$result = mysql_query("SELECT * FROM tbl WHERE Primary = ".$Primary);
I know there must be some special syntax when selecting by the primary key as when I try to sort by other columns it works. How should this be written?
Thanks
$result = mysql_query("SELECT * FROM tbl WHERE Primary = ".$Primary);
I know there must be some special syntax when selecting by the primary key as when I try to sort by other columns it works. How should this be written?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Does it have to do with the $Primary coming from
$Primary = $_GET['Primary'];
?