You are here: Re: Updating the SQL key value « PHP Programming Language « IT news, forums, messages
Re: Updating the SQL key value

Posted by Jerry Stuckle on 04/02/07 02:42

bill wrote:
> 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

Bill,

Well, you're asking how to update a SQL database with SQL...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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