I dont know why this code will not show any data from the mysql.........................
$query = "SELECT * FROM g_attack WHERE winner ='$username' ORDER BY created ASC LIMIT 10";
$row = mysql_query($query) or die("Could not connect to db");
while ( $result = mysql_fetch_assoc($row)) {
$created = $row['created'];
$looser = $row['looser'];
$stolengold = $row['stolengold'];
echo '<tr>';
echo '<td>'.$created.'</td><td>You won over <b>'.$looser.'</b> and stole <b>'.$stolengold.'</b></td>';
echo '</tr>';
}
the database is connected, it is data in the database, but it just dont wanna get any info from it....