The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How can I catch Null field in Mysql
Darpan
post May 11 2007, 11:03 PM
Post #1





Group: Members
Posts: 1
Joined: 11-May 07
Member No.: 2,793



Hi,

I am new with MySql and PHP.

I have a problem while I am checking NULL value in database.

I need

If there is empty field in my table row return message "Somthing "and if there is no empty field return "Nothing". Can anyone help me.

I write a query but it does not work. My query is:

PHP Code:

$query = sprintf("SELECT * FROM `jstatus` WHERE `page` IS NULL AND `etime` IS NULL ");
$ss = mysql_query($query);
$cc=mysql_num_rows($ss);
if($cc= FALSE){

header('location:login_success.php?title=go??sessi onid=0d0a0r0p0a0n');
} else{

header('Location:job_success.php');

}



Please help me!

Thanks in advance.


Regards,

DJ
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 08:31 AM