hey guys,
I have made a database using mysql and php. I have also put in a search option. But what i want is that if the item which is being searched for is not in the databse it should return "Database Not Found". I am not able to execute this.
Please help me on this.
$result=mysql_query("SELECT * FROM student_form WHERE roll='$roll_no'") or die(mysql_error());
What i want is that if the roll does not match with any entry in the database it shouls return "Database Not Found".
I have made a database using mysql and php. I have also put in a search option. But what i want is that if the item which is being searched for is not in the databse it should return "Database Not Found". I am not able to execute this.
Please help me on this.
$result=mysql_query("SELECT * FROM student_form WHERE roll='$roll_no'") or die(mysql_error());
What i want is that if the roll does not match with any entry in the database it shouls return "Database Not Found".