ive got a problem with my code, i cant figure it out:
<?php
$db = mysql_connect("localhost", "nac8013", "ultron");
mysql_select_db("DB_nac8013",$db);
$result = mysql_query("SELECT * FROM news",$db);
for ($count=0; $count<=mysql_fetch_row($result); $count++) {
$title = mysql_result($result,$count,"title");
$time = mysql_result($result,$count,"time");
$news = mysql_result($result,$count,"news");
$name = mysql_result($result,$count,"name");
$udpates = mysql_result($result,$count,"updates");
print("<Table width=480 cellpadding=2 cellspacing=1 bgcolor=#000000 class=main>
<tr>
<td bgcolor=#333366>
<p align=left><B><font color=#ffffff>$title</font></b></p>
</td>
</tr>
<tr>
<td bgcolor=#cccccc>
<p align=left>
$time
</p>
</td>
</tr>
<tr>
<td bgcolor=#ffffff>
<p align=left>
$news
<br><br>
<b><font color=#0000ff>$name</b>
</p>
</td>
</tr>
<tr>
<td bgcolor=#9999cc>
<p align=left>
$updates
</p>
</td>
</tr>
</table>
<Br>");
}
?>
it works out fine except that the $updates variable is empty, i cant print anything from it. Thanks.