Re: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Dan Shirah
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

Re: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Robert Cummings
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

RE: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Mert Oztekin
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

RE: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Ashley Sheridan
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