i am getting errors-
- Notice: Undefined variable: conn in (file location).
- Warning: mysqli_query() expects parameter 1 to be mysqli, null given in
- Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in
whats wrong i am doing in these statement?
include "config.php";
//used for check menu existance in menu table
function check_menu_exist($desname){
$qu =mysqli_query($conn,"SELECT * FROM menu WHERE menu_name='$desname'");
if (mysqli_num_rows($qu)>0)
{
return true;
}
else {
return false;
}
}