Advertisement
tok124

itemlist

May 4th, 2015
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <table>
  2.                                 <tr>
  3.                                     <td style="width:300px;">item</td>
  4.                                     <td style="width:300px;">name</td>
  5.                                     <td>points</td>
  6.                                 </tr>
  7. <?php
  8. @include('functions/tooltip.php');
  9. ?>
  10. <?php
  11. $con = mysqli_connect($host,$dbuser,$dbpass,$dbname);
  12. if (!$con) {
  13.     die('Could not connect: ' . mysqli_error($con));
  14. }
  15. mysqli_select_db($con,"ajax_demo");
  16. $sql="SELECT * FROM azer_items WHERE dp > 0";
  17. $result = mysqli_query($con,$sql);
  18. while($row = mysqli_fetch_array($result)) {
  19.     echo "<tr>";
  20.     echo "<td style='width:300px;'><input type='radio' name='item' value='" . $row['item_entry'] . "'></td>";
  21.     echo "<td style='width:300px;'>";
  22.     showstats($row['item_entry']);
  23.     echo "</td>";
  24.     echo "<td>" . $row['dp'] . "</td>";
  25.     echo "</tr>";
  26. }
  27. ?>
  28.                             </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement