a set of data shows up in the column perfect, but the other two username and data our outside of the column, can someone look at the scripts and tell me whats wrong?
<?php
session_start();
$db = mysql_connect('localhost', 'dangmnne_dangmnx', ''); //fill in host, hostname, hostpass with your own
if (!$db)
{
die('Could not connect: ' . mysql_error());
}
$db_selected = mysql_select_db('dangmnne_test', $db); //fill in DBname with your own
if (!db_selected)
{
die("cant connect");
}
$result = mysql_query("SELECT * FROM members");
print "<div>
<FONT COLOR='#000'><strong>1v1 standings</strong><br><hr>";
while($row = mysql_fetch_array($result))
{
print "<FONT COLOR='#000'><strong> user: </strong>" . $row['username'] . "<br></td>";
print "<FONT COLOR='#000'><strong> record: </strong>" . $row['record'] . "<br></td>";
print "<FONT COLOR='#000'><strong> replay: </strong>" . $row['replay'] . "<br></td>";
print "<FONT COLOR='#000'><strong> ranked: </strong>" . $row['ranked'] . "<br></td>";
print "<FONT COLOR='#000'><strong> points: </strong>" . $row['points'] . "<br><br></td>";
}
print "</div>";
mysql_close($db);
?>
This post has been edited by dangmnx: 13 April 2009 - 06:35 PM

New Topic/Question
Reply




MultiQuote





|