1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
DanielnetoDotCom 2020-08-13 14:07:36 -03:00
parent 15b1c0d321
commit abb69599cf

View file

@ -84,9 +84,9 @@ if ($_POST['createTables'] > 0) {
// If it has a semicolon at the end, it's the end of the query
if (substr(trim($line), -1, 1) == ';') {
// Perform the query
error_log("Installation: ".$templine);
//error_log("Installation: ".$templine);
if (!$mysqli->query($templine)) {
error_log("Installation: ".$mysqli->error);
error_log("Installation: SQL ERROR ".$mysqli->error);
$obj->error = ('Error performing query \'<strong>' . $templine . '\': ' . $mysqli->error . '<br /><br />');
}
// Reset temp variable to empty