DaveC426913
Programmer
$sql = "SELECT LastName FROM myTable WHERE `UID` = ".$UID.";
$resultA = mysql_query($sql);
$LastName = mysql_result($resultA,0,"LastName");
I know this is like, PHP101, but I can never seem to quite get the right answer.
How DO you get a single field from a single row of the db into a variable?
$resultA = mysql_query($sql);
$LastName = mysql_result($resultA,0,"LastName");
I know this is like, PHP101, but I can never seem to quite get the right answer.
How DO you get a single field from a single row of the db into a variable?