/ home / mysql / check for an error in the last mysqli transaction /

Check for an error in the last mysqli transaction

8:59 pm, June 3, 2016 304 53 0.3 @ 200 wpmrate up KruXoR
2

Checks if there is an error in the last sql statement and if there is it shows it. were $db is your database connection.

<?php
$db->query($sql);
if(isset($db->error)) {
echo $db->error;
}
?>

8:59 pm, June 3, 2016 304 53

Comments

Reports

Add Report

Report's

KruXoR

This is a site where i basically just post whatever i feel like at the time, it has no one particular topic but usually. Just my ideas and links and random bits of code that i find.

Follow Me..

@KruXoR

Minecraft

Looking for the kruxor minecraft server mc.kruxor.com? we have migrated it to... icekraft.com if you want to play on there just connect to play.icekraft.com:25535 or mc.kruxor.com should also still work.

Favorite Links