I have been trying to use the function is_null to see if a database value is NULL. When I run this I am looking at the database and the value is definitely NULL, but it is not re-directing to the error.php page.
What have I done wrong??
Thanks Guys :-)
$sql = "
SELECT log_check
FROM users
WHERE user_ID= '$user_ID'":
$perform = mysql_query($sql);
if(mysql_num_rows($perform)==1)//if the details are found
{
$row = mysql_fetch_array($perform);
if(is_null($row['log_check']))
{
header("Location: ../error.php?error=14");
exit();
}
else
{ etc...}