Subject | RE: [firebird-php] ibase_num_rows |
---|---|
Author | Nigel Weeks |
Post date | 2004-11-04T21:50:39Z |
The ibase_num_rows PHP function does not exist - and never has.
If there's stub code in an abstraction layer, it's probably put there simply
because every other database PHP supports has a *_num_rows function...
Use a while loop to retrieve all records, rather than a
for(a=0;a<$numrows;$a++){}
While loops are neater, they save a variable increment, and save the
creation of one more variable to do the increment...sure, small things, but
everything adds up when you use an interpreted language like PHP...
Nige.
If there's stub code in an abstraction layer, it's probably put there simply
because every other database PHP supports has a *_num_rows function...
Use a while loop to retrieve all records, rather than a
for(a=0;a<$numrows;$a++){}
While loops are neater, they save a variable increment, and save the
creation of one more variable to do the increment...sure, small things, but
everything adds up when you use an interpreted language like PHP...
Nige.
> -----Original Message-----
> From: Alan McDonald [mailto:alan@...]
> Sent: Friday, 5 November 2004 8:39 AM
> To: firebird-php@yahoogroups.com
> Subject: RE: [firebird-php] ibase_num_rows
>
>
>
> Sorry - I don't use this function but if you use an
> abstracdtion layer, they
> handle it in several ways and it's far more reliable.
> I use ezSQL - it's very small and fast and specialised to FB.
> Others use
> adoDB - it's much bigger and you can plug other DBs into it
> if you need to.
> Alan
> I can post you a copy of ezSQL with my FB mods if you want
> Alan
> -----Original Message-----
> From: marcos_poletto [mailto:marcos@...]
> Sent: Friday, November 05, 2004 7:19 AM
> To: firebird-php@yahoogroups.com
> Subject: [firebird-php] ibase_num_rows
>
>
>
>
> I have been problems with ibase_num_rows function.
>
> Using ZEND IDE, the function insight shows ibase_num_rows, but my
> system doesn't see that function (undefined function is the php
> message).
>
> I connect on db and use $qid = ibase_query($con,$sql). When i use
> ibase_num_rows($qid) i am not get any result, only the error message
> above.
>
> On PHP site i don't find ibase_num_rows in the function list of
> Firebird/InterBase. And nothing that be similar.
>
> I'm using PHP 5 with Firebird 1.5 on Red Hat 9 with Apache 2.
>
> Sds
> Marcos
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
> Get unlimited calls to
>
> U.S./Canada
>
>
>
>
> --------------------------------------------------------------
> --------------
> --
> Yahoo! Groups Links
>
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/firebird-php/
>
> b.. To unsubscribe from this group, send an email to:
> firebird-php-unsubscribe@yahoogroups.com
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service.
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/PhFolB/TM
> --------------------------------------------------------------
> ------~->
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>