boleknowak

Untitled

Dec 30th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2. mysql_connect("localhost","root","test12345") or die ("Błąd połączenia z serwerem!");
  3. mysql_select_db("skriptmc") or die ("Błąd połączenia z bazą!");
  4. echo "<br />";
  5. echo "<table class='table table-bordered'>";
  6. echo "<tr>";
  7. echo "<th>ID</th>";
  8. echo "<th><span class='glyphicon glyphicon-calendar'></span> Data</th>";
  9. echo "<th><span class='glyphicon glyphicon-user'></span> Zgłaszający</th>";
  10. echo "<th><span class='glyphicon glyphicon-user'></span> Zgłoszony</th>";
  11. echo "<th><span class='glyphicon glyphicon-pencil'></span> Powód</th>";
  12. echo "<th><span class='glyphicon glyphicon-wrench'></span> Opcje</th>";
  13. echo "</tr>";
  14. $find_data = mysql_query("SELECT * FROM report");
  15. while($row = mysql_fetch_assoc($find_data)){
  16. $id = $row['id'];
  17. $sender = $row['sender'];
  18. $player = $row['player'];
  19. $reason = $row['reason'];
  20. $date = $row['date'];
  21.  
  22. echo "<tr>";
  23.  
  24. echo "<td>" . $id . "</td>";
  25. echo "<td>" . $date . "</td>";
  26. echo "<td>" . $sender . "</td>";
  27. echo "<td>" . $player . "</td>";
  28. echo "<td>" . $reason . "</td>";
  29. echo "<td><a href='#' type='button' class='btn btn-danger btn-xs' data-toggle='modal' data-target='#deleteReport' data-toggle='tooltip' title='Kliknij, aby usunąć zgłoszenie z bazy.'><span class='glyphicon glyphicon-trash'></span><a href='#' type='button' class='btn btn-danger btn-xs' data-toggle='modal' data-target='#completeMessage' data-toggle='tooltip' title='Kliknij, aby usunąć zgłoszenie z bazy.'><span class='glyphicon glyphicon-ok'></span></td>";
  30.  
  31. echo "</tr>";
  32.  
  33. }
  34. echo "</table>";
  35.  
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment