php 5'e baya bi gerideyim
tek kolon update işleminde de sıkıntı yok çoklu update ihtiyacı hasıl olunca sıkıntım büyüdü :S
şu kodda hata nedir
$query = $db->prepare("UPDATE content SET ctitle = :ctitle pstatus = :pstatus hit = :hit WHERE id = :id");
$update = $query->execute(array(
'ctitle' => $ctitle,
'pstatus' => $pstatus,
'hit' => $hit,
'id' => $id,
));
if ( $update ){
print "Oldu o is";
}
else{
$error = $query->errorInfo();
echo 'MySQL Error: ' . $error;verdiği hata
Notice: Array to string conversion in