You are here: Re: dynamically adding to multidimensional array « PHP Programming Language « IT news, forums, messages
Re: dynamically adding to multidimensional array

Posted by Mara Guida on 12/16/05 18:06

pauld wrote:
> $sql= sql query
> $i=0;
>
> while ($a2=mysql_fetch_array($a1)) {
> array_push($temparray,$a2[0],$a2['ad'],$a2[1],$a2[1]);
> { I want this array to be the value of an asssoc. array $results[$i]
> $results[$i] =$temparray doesnt work
<snip>

Why doesn't this work?
What's the error message?
What did you expect and what's the outcome?

Try inserting these two lines at the top of your script
ini_set('display_errors', '1');
error_reporting(E_ALL);

 

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

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