$kaydet=$db->prepare("UPDATE books b
join books_authors ba on b.id = ba.bid
join books_types bt on b.id = bt.bid SET
ba.aid = yazari,
b.title=:title,
b.description=:description,
b.page=:page,
b.format=:format,
b.isbn=:isbn,
b.lang=:lang,
b.country=:country,
b.rate=:rate,
b.press_at=:press_at,
b.editor=:editor,
b.status=:status
where b.id = $id");
$update=$kaydet->execute(array(
'yazari' => $_POST['aid'],
'title' => $_POST['title'],
'description' => $_POST['description'],
'page' => $_POST['page'],
'format' => $_POST['format'],
'isbn' => $_POST['isbn'],
'lang' => $_POST['lang'],
'country' => $_POST['country'],
'rate' => $_POST['rate'],
'press_at' => $_POST['press_at'],
'editor' => $editor,
'status' => $status
));normalde çalışıyor ancak en üst satırda ki author olan kısmı da güncelletmek istiyorum ama çoklu update işleminin mantığını anlamadım nette de yeterli döküman yok bilen varsa yardımcı olabilir mi? mantığını söylese yeterli
Sql update
3
●121
- 07-11-2019, 01:21:41Merhaba şöyle bir SQL kodum var