Как передать mysql несколько действий за 1 запрос?
ошибка:
DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
Мой код:
$sql = "UPDATE `ss` SET `available`='yes', `speed` = '' WHERE `id`= '';
UPDATE `ss` SET `available`='no' WHERE `id`= '';
UPDATE `ss` SET `available`='no' WHERE `id`= '';
UPDATE `ss` SET `available`='yes', `speed` = '' WHERE `id`= '';
UPDATE `ss` SET `available`='no' WHERE `id`= '';
UPDATE `ss` SET `available`='yes', `speed` = '' WHERE `id`= '';"
$sth = $dbh->prepare($sql);
$sth->execute;
$dbh->disconnect;