Hi,
I am gettting a warning mess for mysqli_free_res ult() function.
In my prog i am trying to get the data from my database, I am getting the desired output but its giving the following warning mess. And also i am posting a part of prog also.
I am using Ubunthu 8.04 LTX
Warning: mysqli_free_res ult() expects parameter 1 to be mysqli_result, boolean given in.
[code=php]
$update_stock_q uery = "update Stock set
Quantity='$Stoc k_Quantity' where
Book_code='$Boo k_code'";
$update_stock_r esult = $db->query($update_ stock_query);
if($update_stoc k_result)
{
echo 'Stock and Sales Details updated<br/>';
mysqli_free_res ult($update_sto ck_result);
}
mysqli_free_res ult($stock_resu lt);[/code]
I am gettting a warning mess for mysqli_free_res ult() function.
In my prog i am trying to get the data from my database, I am getting the desired output but its giving the following warning mess. And also i am posting a part of prog also.
I am using Ubunthu 8.04 LTX
Warning: mysqli_free_res ult() expects parameter 1 to be mysqli_result, boolean given in.
[code=php]
$update_stock_q uery = "update Stock set
Quantity='$Stoc k_Quantity' where
Book_code='$Boo k_code'";
$update_stock_r esult = $db->query($update_ stock_query);
if($update_stoc k_result)
{
echo 'Stock and Sales Details updated<br/>';
mysqli_free_res ult($update_sto ck_result);
}
mysqli_free_res ult($stock_resu lt);[/code]
Comment