Bonjour,
je souhaite fuisionner ces 8 requetes, mais je ne trouve pas la solution. Est ce que quelqu'un peut m'aider ?
Merci d'avance
je souhaite fuisionner ces 8 requetes, mais je ne trouve pas la solution. Est ce que quelqu'un peut m'aider ?
Merci d'avance
Code:
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city1.'" WHERE id=1 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city2.'" WHERE id=2 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city3.'" WHERE id=3 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city4.'" WHERE id=4 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city5.'" WHERE id=5 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city6.'" WHERE id=6 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city7.'" WHERE id=7 LIMIT 1');
$mysqli->query('UPDATE '.$language_settings.'_cities SET name="'.$city8.'" WHERE id=8 LIMIT 1');