iUnknown
06-07-2008, 12:46 PM
Hello,
$current = mysql_query("SELECT * FROM staff WHERE username=" . $user . "") or die(mysql_error());
$currentarray = mysql_fetch_array($current);
The error is: Unknown column 'Admin' in 'where clause'
Admin is the $user.
It's driving me mad and it's probably a small simple thing... what have I done wrong?
Thanks.
$current = mysql_query("SELECT * FROM staff WHERE username=" . $user . "") or die(mysql_error());
$currentarray = mysql_fetch_array($current);
The error is: Unknown column 'Admin' in 'where clause'
Admin is the $user.
It's driving me mad and it's probably a small simple thing... what have I done wrong?
Thanks.