You are here: small problem with empty() - need help please « All PHP « IT news, forums, messages
small problem with empty() - need help please

Posted by cronoklee on 09/04/06 01:30

Does anyone know why this if statement is equating to true when the
field in question is NULL in the MySQL table?

if(!empty($userinfo['info1'])){echo 'NOT EMPTY!';}

I have tried this also:

echo "INFO IS:".$userinfo['info1'];

which results in:
INFO IS:

What the hell is goin on?

Thanks a lot!
Ciarán

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация