
What mysql query for null value i need to write to display message when no data in database? Please help.
Thanks!

if(mysql_num_rows($data2) > 0){
//while loop goes here
} else {
//echo message
}
To check if the object contain any value or not ..just compare it with zero. If the value for object is greater than zero display it otherwise you can throw any message using "echo". If Else is a great way to validate any object.
Thanks!
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
