openside("Pocket World Achievments");
?>
<html>
<body>
<?php
$username="username_pocket";
$password="xxxxxxxxx";
$database="username_pocket";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT achievment.name, user.p_name
FROM achievment LEFT OUTER JOIN user ON achievment.p_id = user.p_id";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td><font face="Arial, Helvetica, sans-serif"><b><u>Achievment</u></b></font></td>
<td><font face="Arial, Helvetica, sans-serif"><b><u>GamerID</u></b></font></td>
</tr>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"achievment.name");
$f2=mysql_result($result,$i,"user.p_name");
?>
<tr>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f1; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f2; ?></font></td>
</tr>
<?php
$i++;
}
?>
</body>
</html>
<?php
closeside();
Category Forum
Panels and InfusionsLabels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions