I have tried several different scripts listed on StackOverflow and they all give the same error. I know the record exists in the database. Any help or answers please.
Latest script I tried :-
<?php
$team='West Ham';
$query = "SELECT * from analysed where team = '$team'";
$result = mysql_query($query);
if(mysql_num_rows($result) > 0)
{
echo " exists";
} else {
echo " Dont exists";
}
?>
I even tried
$query = "SELECT * from analysed where 1d = '1'";
and
$query = "SELECT * from analysed where 1d = 1";
and got same error
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\football\test-update.php on line 14