Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect("fdb2.125mb.com","432788_weex","nicho1995w");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- $db_con = mysql_select_db("432788_weex", $con);
- if (!$db_con)
- {
- die('Could not connect to "432788_weex": ' . mysql_error());
- }
- $result = mysql_query("SELECT * FROM users");
- echo "<table border='1'>
- <tr>
- <th>PSN Navn</th>
- <th>E-Mail</th>
- <th>Sist pålogget</th>
- </tr>";
- while($row = mysql_fetch_array($result))
- {
- echo "<tr>";
- echo "<td>" . $row['user_name'] . "</td>";
- }
- if['user_level'] != 2 )
- {
- echo "<td><font color="red">" . $row['user_email'] . "</font></td>";
- }
- if['user_level'] != 1 )
- {
- echo "<td><font color="green">" . $row['user_email'] . "</font></td>";
- }
- else
- {
- echo "<td>" . $row['user_email'] . "</td>";
- echo "<td>" . $row['last_online'] . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment