Answer the question
In order to leave comments, you need to log in
What is wrong with mysqli query?
Where is the error in this code? The database query is not executed.
I tried to enter a request through phpMyAdmin, everything works, but here it doesn’t.
$value = serialize($value);
$mysqli = new mysqli(DB_HOST,DB_LOGIN,DB_PASS,DB_NAME);
$q = $mysqli->prepare("UPDATE `settings` SET `value` = ? WHERE `name` = 'groups'");
$q->bind_param("s",$value);
$q->execute();
$q->close();
$mysqli->close();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question