fixing database accesses
This commit is contained in:
parent
36218b9594
commit
b4e6c2f9bb
5 changed files with 40 additions and 37 deletions
|
|
@ -88,8 +88,8 @@ if (UserHasRight('EditVendors'))
|
|||
$InsertVendorQuery = "INSERT INTO `Vendors` (`Name`, `Homepage`, `MinBill`, `ShippingCost`, `LockId`, `LockTime`) VALUES ('$Name', '$Homepage', '$MinBill', '$ShippingCost', 0, 0);";
|
||||
if (mysqli_query($GlobalMysqlHandler, $InsertVendorQuery) === false) {
|
||||
$err_msg = "Database error while insert new vendor!";
|
||||
$err_msg += "\nErrno: " . mysqli_connect_errno();
|
||||
$err_msg += "\nError: " . mysqli_connect_error();
|
||||
$err_msg .= "\nErrno: " . mysqli_connect_errno();
|
||||
$err_msg .= "\nError: " . mysqli_connect_error();
|
||||
ErrorLog($err_msg);
|
||||
MessageError(LangSpell('SentenceDatabaseError'));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue