I am getting this error message
Warning: mysqli::query(): Couldn't fetch mysqli in C:\xampp\htdocs\Internal Evaluation Guide\action4.php on line 176
The connection with the database is ok
for ($i =1; $i <=$s; $i++){
//echo $idb[$i];
echo "<br>";
if ($kind1 == 'braxyxronia'){
$d[$i] = $_POST["delb".$i];
if ($d[$i]=="del"){
$quer_del="Delete from apotelesmata where id='$idb[$i]' and kind='$kind1'";
//echo $quer_del; the string is ok
$result = $db->query($quer_del); //line 176
}
//$id=$i;
}
}