You are here: Re: single quotes, double quotes and "undefined index" « PHP Programming Language « IT news, forums, messages
Re: single quotes, double quotes and "undefined index"

Posted by Michael Fesser on 07/13/07 22:42

..oO(bill)

>Michael Fesser wrote:
>
>> Syntax is correct. I'm just wondering why the values for the ID and date
>> fields are quoted. If a value is numeric, don't quote it. So the parser
>> might be right and the index is just not defined?
>
>I hate that: The index *is* undefined the first time through !

If you know that an index will be undefined on the first run, then you
have to take care of that in your scripts and use a default value if
necessary. isset() exists.

Micha

 

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

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