record set question

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

Post Reply
ericsodt
Forum Commoner
Posts: 51
Joined: Fri Aug 22, 2003 12:12 pm
Location: VA

record set question

Post by ericsodt »

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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

[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 »

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
Post Reply