Tym jest PDO: https://secure.php.net/manual/en/book.pdo.php
Czyli jeżeli np wykonujesz kod:
<?php
// Source: https://secure.php.net/manual/en/pdo.commit.php
/* Begin a transaction, turning off autocommit */
$dbh->beginTransaction();
/* Insert multiple records on an all-or-nothing basis */
$sql = 'INSERT INTO fruit
(name, colour, calories)
VALUES (?, ?, ?)';
$sth = $dbh->prepare($sql);
foreach ($fruits as $fruit) {
$sth->execute(array(
$fruit->name,
$fruit->colour,
$fruit->calories,
));
}
/* Commit the changes */
$dbh->commit();
/* Database connection is now back in autocommit mode */
?>
To tutaj używasz PDO.
Najprościej ją zainstalować mając dostęp do shella, w przeciwnym przypadku możliwe że będzie potrzebny kontakt z dostawcami hostingu