Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect("$host","$user","$pass");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("$acct_data", $con);
- $result = mysql_query("SELECT * FROM phpbb_users");
- echo "<table border='0'>
- <tr>
- <th>UserName</th>
- <th>ID</th>
- </tr>";
- while($row = mysql_fetch_array($result))
- if ('group_id' == 6)
- {
- end;
- }
- else
- {
- echo "<tr>";
- echo "<td>" . $row['username'] . "</td>";
- echo "<td>" . $row['group_id'] . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement