I can't understand why I get the error: "Number of
variables doesn't match number of parameters in prepared
statement".
My code looks like
this:
$DB['con'] = new
mysqli($$DB['host'],$DB['user'],$DB['pass'],$DB['base']);
$stmt=$DB['con']->prepare("insert
into
points(iduser,puncte,nume,email,telefon,ultimulpost)values('?',?,'?','?','?',(SELECT
CURDATE()))");
$stmt->bind_param('sisss',$idm,$mynumber,$nume,$email,$tel);
$stmt->execute();
No comments:
Post a Comment