using empty() is ´the right way to check a var for NULL or
however, it also depends what MySQL has got as setuo definition for empty
fields. on textfields u can define an epmty string as default.
So say these are the first three results of my query:
some text //The column actually has
Ralph Deffke wrote:
using empty() is ´the right way to check a var for NULL or
Empty will also match a string containing 0. And, to me, that doesn't at
all seem empty :)
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List
Cummings [mailto:rob...@interjinn.com]
Sent: Wednesday, September 23, 2009 4:28 PM
To: Ralph Deffke
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: NULLS vs Empty result in PHP
Ralph Deffke wrote:
using empty() is ´the right way to check a var for NULL or
Empty will also match a string
your program.
-Original Message-
From: Robert Cummings [mailto:rob...@interjinn.com]
Sent: Wednesday, September 23, 2009 4:28 PM
To: Ralph Deffke
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: NULLS vs Empty result in PHP
Ralph Deffke wrote:
using empty() is ´the right
4 matches
Mail list logo