From a9f52e73d486a4ebeb47db0cb0ef82d06a4d75bb Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 7 Feb 2018 21:36:38 +0100 Subject: [PATCH] Fix up last remains for new php --- DonationsStats.php | 6 +++--- includes/header.php | 10 +++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/DonationsStats.php b/DonationsStats.php index d14f3e4..0c4917c 100755 --- a/DonationsStats.php +++ b/DonationsStats.php @@ -28,10 +28,10 @@ $total_year = 0.0; $donation_count = 0.0; -$sql_donations = mysql_query("SELECT * FROM donations WHERE YEAR(dt) = " . $year); +$sql_donations = mysqli_query($db_link, "SELECT * FROM donations WHERE YEAR(dt) = " . $year); -if (mysql_num_rows($sql_donations)) { - while ($sql_row = mysql_fetch_assoc($sql_donations)) { +if (mysqli_num_rows($sql_donations)) { + while ($sql_row = mysqli_fetch_assoc($sql_donations)) { $amount = $sql_row["amount"]; $donation_count += 1.0; if ($amount > $max_month) { diff --git a/includes/header.php b/includes/header.php index 95d16dc..ff88845 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,16 +1,12 @@