Helo! I'm trying to execute a mysql query but I've ran into the problem above.
This is my code:
$query = ("UPDATE cegek SET CegNev='".$cegnev."', Kozpont='".$kozpont."', Bevetel='".$bevetel."', Alkalmazottak='".$alkalmazott."', Iparag='".$iparag."' WHERE id=".$id."'");
$conn = $db->prepare($query);
$conn->bind_param("ssiisi", $cegnev, $kozpont, $bevetel, $alkalmazott, $iparag, $id);
$db->close();
And it's result is:
Fatal error: Call to a member function bind_param() on boolean in...
I have found some similar questions but I couldn't figure out the solution. Anyone can help me?