PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
ericsodt
Forum Commoner
Posts: 51 Joined: Fri Aug 22, 2003 12:12 pm
Location: VA
Post
by ericsodt » Fri Nov 14, 2003 12:22 pm
Does PHP have a function, without looping through the recordset, that tells you if anything was returned.
ie. False is not data is returned
True when a record set comes back??
Thanks
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Fri Nov 14, 2003 12:23 pm
[php_man]mysql_num_rows[/php_man]
ericsodt
Forum Commoner
Posts: 51 Joined: Fri Aug 22, 2003 12:12 pm
Location: VA
Post
by ericsodt » Fri Nov 14, 2003 12:26 pm
Thanks, but Im not using MySQL, however odbc_fetch_row returns false when nothing is brought back and true (1) when records are.
Thanks for your help