You are here: Re: [PHP] Help with using SPL to build a MySQL Iterator « PHP « IT news, forums, messages
Re: [PHP] Help with using SPL to build a MySQL Iterator

Posted by Chris on 10/20/90 11:16

V Kam wrote:

>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!
>
I just put all the code that retrieves the data in the next() function.
current() and key() just return the variables that next populated.

Don't know what else to say.

Chris

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация