I am trying to get a database call to show a statement saying no results found if there are no results returned.
How would I go about doing this to my code:-
if ( ! mysql_num_rows($getFixtures)) { echo 'No results found.'; } else { ... }
This needs an IF statement.
$rows = mysql_fetch_array($getFixtures); if(count($rows)) { while ($fixtureData = $rows) ... } else { echo 'No results found'; }