From 5c2ef18403823b803cc78b4c1684ffa4ec7759c9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 21 Oct 2014 17:18:20 +0100 Subject: [PATCH] Update donations page --- Donations.php | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Donations.php b/Donations.php index 981a1ac..b324368 100755 --- a/Donations.php +++ b/Donations.php @@ -19,6 +19,11 @@ require "donate/connect.php"; Currently the KXStudio project accepts donations via Flattr or PayPal.
You can do a one-time donation or subscribe monthly.
In either case, we thank you in advance for any donation you make!
+

+ +

+ Note that PayPal takes a minimum 5% fee on all donations (10€ becomes 9.31€).
+ You can bypass this fee by sending money directly to falktx@falktx.com as a friend.

@@ -26,10 +31,11 @@ require "donate/connect.php"; $cur_amount = 0.0; if ($db_link) { -$sql_donations = mysql_query("SELECT * FROM donations WHERE MONTH(dt) = MONTH(NOW()) AND YEAR(dt) = YEAR(NOW())"); +$sql_donations_month = mysql_query("SELECT * FROM donations WHERE MONTH(dt) = MONTH(NOW()) AND YEAR(dt) = YEAR(NOW())"); +$sql_donations_last5 = mysql_query("SELECT * FROM donations ORDER BY dt DESC LIMIT 5"); -if (mysql_num_rows($sql_donations)) { - while ($sql_row = mysql_fetch_assoc($sql_donations)) { +if (mysql_num_rows($sql_donations_month)) { + while ($sql_row = mysql_fetch_assoc($sql_donations_month)) { $cur_amount += $sql_row["amount"]; } } @@ -50,7 +56,14 @@ if ($cur_percent > 100.0) { -
+
+ + Last 5 donations:
+ "; + } + ?>