Welcome Guest, Not a member yet? Register   Sign In
NULL and 0
#1

[eluser]dimaomni[/eluser]
Hello everybody!

I have some input_form().From they I receive array which can include key with digits and empty values.

This values I use for INSERT query, and when value has NULL - this involve sql error.
So I start to use array_filter(), and everything had been good before I needed use "0".

I've tried use this condition, however it like tautology and don't work ).

Code:
if ($mark>=0 && $mark<=12 && $mark != NULL)

What do you tell ?


Messages In This Thread
NULL and 0 - by El Forum - 04-24-2010, 02:09 PM
NULL and 0 - by El Forum - 04-24-2010, 03:09 PM
NULL and 0 - by El Forum - 04-24-2010, 05:05 PM
NULL and 0 - by El Forum - 04-24-2010, 11:54 PM
NULL and 0 - by El Forum - 04-25-2010, 01:23 AM
NULL and 0 - by El Forum - 04-25-2010, 02:59 AM
NULL and 0 - by El Forum - 04-25-2010, 04:21 AM
NULL and 0 - by El Forum - 04-25-2010, 02:16 PM
NULL and 0 - by El Forum - 04-25-2010, 02:42 PM
NULL and 0 - by El Forum - 04-25-2010, 11:32 PM
NULL and 0 - by El Forum - 04-28-2010, 04:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB