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]
|