Browse Source

Only show "Last 5 donations:" if DB link is ok

pull/4/head
falkTX 9 years ago
parent
commit
033859ce1a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Donations.php

+ 2
- 1
Donations.php View File

@@ -58,8 +58,9 @@ if ($cur_percent > 100.0) {
<table>
<tr><td width="40px">
</td><td valign="bottom" width="200px">
<?php if ($db_link) { ?>
<b>Last 5 donations:</b><br/>
<?php
<?php }
while ($sql_row = mysql_fetch_assoc($sql_donations_last5)) {
echo "" . date("Y-m-d", strtotime($sql_row["dt"])) . " - " . $sql_row["amount"] . "&euro;<br/>";
}


Loading…
Cancel
Save