
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.93 KB | hits: 18 | expires: Never
<?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);
?>