KML9870, I don't know if I'm right in saying this, but it looks like your section of code
PHP Code:
$results = mysql_query or die('error making query');
is causing the problem
$results = mysql_query($query) or die('error making query');
but that is not all...I think you need to use mysql_num_rows to assign the numeric value to your variable.
$rownumber = mysql_num_rows($query);
now you can check whether $rownumber == 1
|