Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

check if coloumn is empty or null

Codes here !

Moderators: macek, egami, gesf

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
lvidya
New php-forum User
New php-forum User
 
Posts: 37
Joined: Wed Jun 20, 2012 3:20 am

Re: check if coloumn is empty or null

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

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 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 )
NigelRen
php-forum Active User
php-forum Active User
 
Posts: 450
Joined: Fri Aug 05, 2011 9:53 am


Return to mySQL & php coding

Who is online

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

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.