View Single Post
  #9 (permalink)  
Old 08-25-06, 04:09 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
If $stringval is set to 0, like in the example above, then empty() will return true as well. You could try this:

PHP Code:

if (trim($stringval) != '' AND trim($stringData) != '')) 

Reply With Quote