Fix wrong keyname in webhook.php.

This commit is contained in:
Ceda EI 2018-04-01 18:08:29 +05:30
parent d82158c543
commit fe02ebe2fb
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ $alphabet = array(
"y" => 0,
"z" => 0
);
$conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['dbname']);
$conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['database']);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
@ -60,7 +60,7 @@ for ($i = 97; $i <= 122 ; $i++) {
}
if ($result->num_rows > 0) {
$query = "DELETE FROM " . $mysql['dbname'] . " WHERE id = $sender_id ;";
$query = "DELETE FROM " . $mysql['database'] . " WHERE id = $sender_id ;";
$conn->query($query);
}