Answer the question
In order to leave comments, you need to log in
What to do not to write requests in the code?
A binding request in PDO looks something like this:
$q=$pdo->prepare(" INSERT INTO `table` SET data=:data, time=NOW() ");
$q->bindParam(":data",$data);
try {
$q->execute();
} catch (PDOException $e) {
// функция обработки ошибок
}
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