You are here: Re: [PHP] Splitting Vars from MySQL in PHP « PHP « IT news, forums, messages
Re: [PHP] Splitting Vars from MySQL in PHP

Posted by Christopher Fulton on 04/30/05 01:18

On 4/29/05, jlfx mailgroups <mailgroups@jlfx.com> wrote:
>
> I remember in Perl I used to extract vars from a single fetchrow by adding
> each var name to the beginning (like this). Only this ain'ta workin :)...
> Anyone know the right syntax to do this?
>
> ($var1, $var2, $var3)= mysql_fetch_array($result, MYSQL_ASSOC)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


list($var1, $var2, $var3) = mysql_fetch_array($result, MYSQL_ASSOC);
http://us4.php.net/manual/en/function.list.php

-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

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