Buy Now
Sign in

How can i check if the where clause returns a record?

psypod , September 28 2008, 16:23
P
psypod 5
September 28 2008, 16:23 #14220
Hi there, is there a way to check how many records where found in the database?

Regards
admin 29
September 28 2008, 18:56 #14227
I think may be <?php echo count($rows); ?> at the body area may work!

Cheers

Max
GreyHead 64
September 28 2008, 19:32 #14233
Hi psypod,

Or
<?php echo $db->getNumRows; ?>
if there's been a database call.

Bob

PS Could be $db-> or $database-> depending on the way the code is written.
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
P
psypod 5
September 28 2008, 20:44 #14237
Thanks for advise! I'm gonna try both suggestions tomorrow.
Regards