difrad76
06-27-2006, 09:45 AM
Is the a quick and easy way of checking if my qurey returned any data from database?
I am trying to do this with this code:
$sqlSummary="select * from tbl_monitorSummary where monitor_Id='".$id."'";
$res=odbc_fetch_array($executeStatement);
if ($res!=null && $res==true)
print("We have got Data");
else
print("We don't Have data");
but it doesn't work, always says that we have got data :(.
Thanks
I am trying to do this with this code:
$sqlSummary="select * from tbl_monitorSummary where monitor_Id='".$id."'";
$res=odbc_fetch_array($executeStatement);
if ($res!=null && $res==true)
print("We have got Data");
else
print("We don't Have data");
but it doesn't work, always says that we have got data :(.
Thanks