Re: Updating the SQL key value
- From: bill <nobody@xxxxxxxxxxx>
- Date: Sun, 01 Apr 2007 09:17:43 -0400
Toby A Inkster wrote:
bill wrote:
One additional question: does the foreach loop terminate because the query return false ?
It terminates as soon as the query has run out of rows.
It's a PHP 5 feature called "Iterators" -- that is PDO queries are
returned as objects that, although they are not arrays, can be treated as
arrays in a foreach loop. The solution would work equally well using PHP 4
constructs, but the code doesn't look as neat.
THank you,
I am stuck using 4.x because my hosting company does not have PHP5 available, yet.
What would be the php 4 code ?
Thanks to all (even Jerry, who thinks that we should be elsewhere) for the great discussion.
bill
.
- Follow-Ups:
- Re: Updating the SQL key value
- From: Toby A Inkster
- Re: Updating the SQL key value
- From: Jerry Stuckle
- Re: Updating the SQL key value
- Prev by Date: Re: MS Access to MySQL
- Next by Date: phpMyAdmin -disabled browse
- Previous by thread: Re: Updating the SQL key value
- Next by thread: Re: Updating the SQL key value
- Index(es):
Relevant Pages
|