From fe02ebe2fbf6927325bb00138d468383fb19590c Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 1 Apr 2018 18:08:29 +0530 Subject: [PATCH] Fix wrong keyname in webhook.php. --- webhook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webhook.php b/webhook.php index f5ff74e..c0c4ae9 100644 --- a/webhook.php +++ b/webhook.php @@ -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); }