You are here: Re: PHP / Mysql - Retreive "Next" Row data in "this" row « PHP Programming Language « IT news, forums, messages
Re: PHP / Mysql - Retreive "Next" Row data in "this" row

Posted by bill on 01/04/07 14:41

Hendri Kurniawan wrote:
> Another way to do it VIA array
>
> <?php
> $vals = array();
> while ($temp = fetch_row_from_db()) $vals[$temp[0]] = $temp;
> var_dump($vals);
> ?>
>
> This way, you are sure to get the last row of every value.
>
> Hendri Kurniawan
>

Hendri,
Would you please take pity on a PHP newbie and explain your code.
It is elegant and dense I can't quite make sense of it.
Shouldn't there be a bracket after the while statement ?\

bill

 

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

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