hey my database does nothing and i dont know why.
the code
$blub = $dbh->prepare("UPDATE `aufträge` SET status= ? WHERE id= ?");
$blub->bindParam(1, $m[0]);
$blub->bindParam(2, $m[1]);
$blub->execute(); `
var_dump($blub);
object(PDOStatement)#3 (1) { [“queryString”]=> string(43) “UPDATE
aufträgeSET status= ? WHERE id= ?” }
data base does nothing.
if i dont use prepared statements it runs without a problem
please help me, i want to use prepared statements
Try this out : ( I believe you were using
mysqlisyntax)Also make sure that
$m[0]and$m[1]are set when you are passing them to the query (in a loop or whatnot)