check if coloumn is empty or null

Codes here !

Moderators: macek, egami, gesf

lvidya
New php-forum User
New php-forum User
Posts: 37
Joined: Wed Jun 20, 2012 3:20 am

check if coloumn is empty or null

Postby lvidya » Tue Jul 24, 2012 8:30 pm

Hi, pls help me in how to check a field is empty or the value is null

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: check if coloumn is empty or null

Postby johnj » Tue Jul 24, 2012 8:42 pm


NigelRen
php-forum Active User
php-forum Active User
Posts: 450
Joined: Fri Aug 05, 2011 9:53 am

Re: check if coloumn is empty or null

Postby NigelRen » Thu Aug 02, 2012 11:37 pm

Are you talking about a database field - if so you can use 'is null' ( http://dev.mysql.com/doc/refman/5.0/en/ ... -null.html )


Return to “mySQL & php coding”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron