I have this
(partial code)
<?
ob_start();
$email = $POST['email'] ;
$legal = $POST['age'];
include("connect.php");
$sql = "SELECT * FROM tablename WHERE email ='$email'";
$ExecuteQuery = mysql_query($sql);
$row_count = mysql_num_rows($ExecuteQuery);
if ($legal == "no" or $email==NULL or $row_count > 0)
{
mysql_close($db_conn);
header("Location: http://www.url.com/sorry.html");
exit;
}
else
{
it is totally ignoring the row count and going to the else.
I'm totally lost as to why. Any clues?
TIA
lilRachie