Hi,
I have a code like below:
$sql = mysql_query("SELECT id FROM data WHERE link LIKE '%$search%' LIMIT 0,30") or die (mysql_error());
if($sql > 0){
echo "Yes we have the record in here!";
}
When I run the code the runner enters in the if statement because $sql has a value of 4 but it mustn't because when I run the query in phpmyadmin sql query tab there were no results. So what I am missing?
Thank you,
Cem