You are here: Re: Notice: Undefined index: Error « PHP Programming Language « IT news, forums, messages
Re: Notice: Undefined index: Error

Posted by Man-wai Chang on 04/25/07 10:00

> 65 while ($newArray = mysql_fetch_array($result)) {
> 67 $id = $newArray['id'];
> 68 $testField = $newArray['testField'];

You should use fetch_assoc() if the index is a string ('id') rather than
a number(0,1,2,3...).

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288

 

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

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