PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
include 'c:\Intranet\phplib\header.php';
include 'c:\Intranet\phplib\mysql_connect.php';
$key = $_GETї'key'];
$student_array = mysql_query ("SELECT * FROM staff WHERE key = '$key'")
or die ("Not Found" . mysql_error());
$row = mysql_fetch_array($student_array, MYSQL_ASSOC);
$last = $rowї'Last'];
$first = $rowї'First'];
$OfficePhone = $rowї'OfficePhone'];
$key = $rowї'key'];
$add1 = $rowї'Address1'];
$city = $rowї'City'];
$HomePhone = $rowї'HomePhone'];
?>
I get this for my error but everything looks good in my query...
Not FoundYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = 164' at line 1
Last edited by siefkencp on Thu Jan 13, 2005 10:30 am, edited 2 times in total.