Subject Re: php.. returning number of rows
Author ian.mellor@legalisp.net
-Surojit Niyogi wrote:
>
> Does anybody know the BEST method of finding out whether the
> recordset returned is empty or not?
>
We just check that the result set isnt false (ie the sql was valid)
and that the "primary" column isnt empty before we go off looping
through the result. Not very elegant, and only works if the result
contains a known not-null field. Fabrice's answer is probably better..

yours,
Ian