Help with using SPL to build a MySQL Iterator
| From: | V Kam | Date: | Wed, 18 May 2005 12:21:45 +0000 |
| Subject: | Help with using SPL to build a MySQL Iterator | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215461@lists.php.net to get a copy of this message | ||
Hello all
I was trying to write an SPL Iterator for a MySQL
result set but not having any luck. Specifically I'm
not sure how to overload the key() and current/next()
methods.
Does anyone here have a working code sample that does
this, or can offer some guidance on how to overload
the 5 Iterator methods? Any assistance much
appreciated!
Thanks!
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail