Reply to Re: converting array $row values to $string

Your name:

Reply:


Posted by Jerry Stuckle on 12/17/37 11:53

monomaniac21 wrote:
> hi all
>
> is there a function to convert all values of array $row into seperate
> variables:
>
> $row = mysql_fetch_array($result);
>
> // i dont want to have to do this anymore :-)
>
> $name = $row['name'];
> $address1 = $row['address1'];
> $address2 = $row['address2'];
> etc etc etc
>
>
>
>
> Regards
>
> marc
>

Why not just

list($name, $address1, $address2) = mysql_fetch_array($result);

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

[Back to original 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

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