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

Posted by Vince Morgan on 04/25/07 08:31

<jsgoodrich@gmail.com> wrote in message
news:1177479731.766290.149490@r35g2000prh.googlegroups.com...

> 63 $number_of_rows = mysql_num_rows($result);
> 64
> 65 while ($newArray = mysql_fetch_array($result)) {

You are certain that "id" is the field name?
If so you could try,
mysql_fetch_array($result, MYSQL_ASSOC)) .

> 66
> 67 $id = $newArray['id'];
> 68 $testField = $newArray['testField'];
> 69
> 70 echo "The ID is $id and the text is $testField <br>";
>
>
> Anyone have any thoughts?
>
Vince

 

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

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