<? $connection = new mysqli($dbHost, $dbUser, $dbPass, $dbName); if ($connection->connect_error) { echo "Error Occurred While Connection To DataBase"; } //SQL statements separated by semi-colons $sqlStatements = "INSERT INTO dbName (columnName) VALUES ('Value1');INSERT INTO dbName (columnName) VALUES ('Value2');INSERT INTO dbName (columnName) VALUES ('Value3');"; $sqlResult = $connection->multi_query($sqlStatements); if($sqlResult == true) { echo 'Successfully executed all statements.'; } else { echo 'Error occurred executing statements.'; } ?>
Clearly, this is more efficient than executing queries one by one, and could save a bit of time in critical applications. Also, mysqli is object-orientated, so there are other useful variables and method that can be returned from the mysqli object to make your code more efficient.
Errors? You may need to enable the mysqli extensions, as these may not be enabled by default. See here http://www.php.net/manual/en/mysqli.installation.php for more info, or leave a comment with your problem.
maltepe mitsubishi klima servisi
ReplyDeleteüsküdar mitsubishi klima servisi
pendik vestel klima servisi
pendik bosch klima servisi
tuzla samsung klima servisi
çekmeköy arçelik klima servisi
kadıköy samsung klima servisi
maltepe daikin klima servisi
kadıköy daikin klima servisi
Good content. You write beautiful things.
ReplyDeletehacklink
sportsbet
sportsbet
vbet
mrbahis
korsan taksi
mrbahis
vbet
hacklink
Success Write content success. Thanks.
ReplyDeletekralbet
canlı slot siteleri
betturkey
canlı poker siteleri
betmatik
betpark
kıbrıs bahis siteleri
yurtdışı kargo
ReplyDeleteresimli magnet
instagram takipçi satın al
yurtdışı kargo
sms onay
dijital kartvizit
dijital kartvizit
https://nobetci-eczane.org/
JQTWWV
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
KDGZ