RE: [PHP] ODBC number of rows?
| From: | Andrew Hill | Date: | Fri, 03 May 2002 21:33:54 +0000 |
| Subject: | RE: [PHP] ODBC number of rows? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95982@lists.php.net to get a copy of this message | ||
Brian,
This returns -1 for most drivers in a Select, but should return
appropriate info in an Update, Alter, Insert, etc.
If you need the feature when returning rows of data, you may simply
create a loop and increment a counter variable as you iterate over the
result se5t.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access & Virtuoso Universal Server
-----Original Message-----
From: Brian McGarvie [mailto:bmcgarvie@lennox-mckinlay.co.uk]
Sent: Wednesday, May 01, 2002 7:07 AM
To: PHP General
Subject: [PHP] ODBC number of rows?
odbc_num_rows($result);
the above return -1 always, what other way can you check if any rows
have been returned?
===============================================
Brian M McGarvie,
Web Appications Co-ordinator/Consultant
===============================================
[ www.mcgarvie.net | www.lennox-mckinlay.co.uk]
===============================================
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php