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

psypod 28 Sep, 2008
Hi there, is there a way to check how many records where found in the database?

Regards
Max_admin 28 Sep, 2008
I think may be <?php echo count($rows); ?> at the body area may work!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 28 Sep, 2008
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.
psypod 28 Sep, 2008
Thanks for advise! I'm gonna try both suggestions tomorrow.
Regards
This topic is locked and no more replies can be posted.