Connection failed: " . $db->connect_error . "
"); // loop over SQL array executing each statement in turn, die on error foreach ($sql as $q) { if (isset($q)) { echo "Execute: " . $q;
if ($db->query($q) !== TRUE) echo "
Query failed: " . $db->error;
else echo "
Complete";
echo "