hey guys im trying to output something if a querry is empty?
i have this done but it does not work?whats wrong with it?PHP Code:<?php
$QQQ4 = mysql_query(" SELECT *
FROM `tests`
LIMIT 0 , 30 ");
if(mysql_num_rows($QQQ4) == 0)
{
$QQQ4 = 'to come';
}
if it empty it gives me
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in url on line 37



Reply With Quote
Bookmarks