Answer the question
In order to leave comments, you need to log in
Fatal error: Call to undefined function prepare()?
I do:
$data = prepare('SELECT * FROM `users` WHERE `phone`= ?');
$data->execute(array($login));
Fatal error: Call to undefined function prepare()
Answer the question
In order to leave comments, you need to log in
Learning to think what is wrong with you as in this example
$var="User";
$dbh=new PDO("mysql:host=localhost;dbname=database;","root","");
$stmt=$dbh->prepare("UPDATE `users` SET user=:var");
$stmt->bindParam(":var",$var);
$stmt->execute();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question