Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 29, 2005, 9:33 pm
rate this thread
I am using a class.database.php which I found on the web, the class
has the following method:
$this->totalrecords = mysql_num_rows($this->queryid);
$this->return_error("Unable to count the number of
} //end function
But the problem I having is when I run the query and call the
resultCount() function to get the number of records it works fine but
when there is no records I have no way of finding out. I've tried the
following but no luck:
If(resultCount() == NULL) doesn't work
if(resultCount() == 0) doesn't work
I need this to return a result if there is no records from the query
so I can use it for validation.
- » Americanas.com SALDO de TVs Com at 80% de Desconto (29798)
- — Newest thread in » MySQL Database Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum