Reply to Re: Differentiate between NULL and 0

Your name:

Reply:


Posted by GazK on 01/15/06 15:56

askMe wrote:
> GazK wrote:
>> I have a script which takes the results of a form and updates or creates
>> a record in a db table. So far so dull. It works fine, except when I
>> leave certain fields blank; these are entered in the table as zero
>> values. Can anyone assist me to differentiate between NULL and zero? the
>> variables that are troubling are fatalities, injuries, latitude and
>> longitude.
>>
>> TIA
>>
>> Garry
>>
>
> Zero is a number. NULL has no value assigned.
>
> http://www.askblax.com
>

Thanks, thats given me the answer; insert a test for
is_numeric($variable) on these items. Thanks again.

[Back to original 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

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