Subject RE: [ib-support] Get num rows from firebird query with php
Author Riste Pejov
Using the $rows variable is not really advisable because the script must do
_fetchall_ before,
to it means that it will have to transfer all the rows to the client first.
If u have small tables
you may not notice a difference but generaly it's not the right thing to do.

Use "select count(id) from table"
or use $rows as a counter when doing iteration fetching record

--meta



On Friday 18 October 2002 11:38 pm, supertokkie wrote:
> How can I get the number of rows from a firebird query with php?
> There is no standard function in php.
>
> Is the only possibility to use another query and ask the number of
> records?
>
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/


Yahoo! Groups Sponsor
ADVERTISEMENT




To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]