Page 1 of 1

record set question

Posted: Fri Nov 14, 2003 12:22 pm
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

Posted: Fri Nov 14, 2003 12:23 pm
by Weirdan
[php_man]mysql_num_rows[/php_man]

Posted: Fri Nov 14, 2003 12:26 pm
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