You are here: Re: extract array from mysql « PHP Programming Language « IT news, forums, messages
Re: extract array from mysql

Posted by Andy Hassall on 08/09/06 19:23

On 9 Aug 2006 08:36:02 -0700, "monomaniac21" <mcyi2mr3@googlemail.com> wrote:

>i get an error when i try to extract from a mysql_fetch_array variable
>it says: Warning: extract(): First argument should be an array in...

Then you haven't passed it an array? (mysql_fetch_array can return something
other than an array).

>Is this not possible?

You probably also want to use mysql_fetch_assoc insteadn (unless you've set
the result_type parameter to MYSQL_ASSOC), because otherwise it may try to
create variables like $0, $1, $2.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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