Advertisement
Guest User

Untitled

a guest
Oct 18th, 2010
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. $con = mysql_connect("$host","$user","$pass");
  3. if (!$con)
  4. {
  5. die('Could not connect: ' . mysql_error());
  6. }
  7. mysql_select_db("$acct_data", $con);
  8.  
  9. $result = mysql_query("SELECT * FROM phpbb_users");
  10.  
  11. echo "<table border='0'>
  12. <tr>
  13. <th>UserName</th>
  14. <th>ID</th>
  15. </tr>";
  16.  
  17. while($row = mysql_fetch_array($result))
  18. if ('group_id' == 6)
  19. {
  20. end;
  21. }
  22. else
  23. {
  24. echo "<tr>";
  25. echo "<td>" . $row['username'] . "</td>";
  26. echo "<td>" . $row['group_id'] . "</td>";
  27. echo "</tr>";
  28. }
  29. echo "</table>";
  30.  
  31. mysql_close($con);
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement