penalties.php 373 B

12345678910111213
  1. <?php
  2. $query = mysqli_query($link, "select * from penalties");
  3. while ($res = mysqli_fetch_array($query)) {
  4. $accid = $res['account_id'];
  5. $task = $res['task_id'];
  6. $date = $res['created'];
  7. $acc = Account::Find($accid);
  8. if ($acc) {
  9. echo "Штраф: <b>$acc->name</b> [$acc->id] Задача: $task, создан $date<br>";
  10. }
  11. }