pa u indexu,
Code:
echo "<table border='1' width='100%'>
<tr><td width='2%' bgcolor='#44749D' ><img src='sf.gif'></td><td widht='55%' bgcolor='#44749D' height='25'><center><font color=white><b>Tema</b></font></center></td><td width='7%' bgcolor='#44749D'><center><font color=white><b>Odgovora</b></font></center><td width='10%' bgcolor='#44749D'><center><font color=white><b>Autor</b></font></center></td><td width='7%' bgcolor='#44749D'><center><font color=white><b>Pregleda</b></font></center></td><td width='15%' bgcolor='#44749D'><center><font color=white><b>Zadnja poruka</b></font></center></td></td></tr>";
while ($row = mysql_fetch_array($query1))
{
$topic_id = $row['ID'];
$topic_views = $row['views'];
$topic_replies = $row['replies'];
$topic_author = $row['author'];
$topic_subject = $row['subject'];
$topic_updated = $row['updated'];
$topic_date = $row['date_writted'];
$t_sub2 = htmlspecialchars($topic_subject);
$t_auth = htmlspecialchars($topic_author);
echo "<tr><td bgcolor='#FFFFFF'><img src='folder.gif'></td><td height='25' onmouseover=\"this.style.background='#8BA8CB'\" onmouseout=\"this.style.background='#FFFFFF'\"><a href='index.php?act=viewtopic&id=$topic_id'>$t_sub2</a></td><td><b><center>$topic_replies</b></center></td><td bgcolor='#FFFFFF'><b><center><small>$t_auth</small></b></center></td><td><b><center>$topic_views</b></center></td><td bgcolor='#FFFFFF'><center>$topic_updated</center></td></tr>";
}
echo "</table>";
treba mi da ubacim i cellspacing='0'...
ali ako stavim
Code:
echo "<table border='1' width='100%' cellspacing="0" >
<tr><td width='2%' bgcolor='#44749D' ><img src='sf.gif'></td><td widht='55%' bgcolor='#44749D' height='25'><center><font color=white><b>Tema</b></font></center></td><td width='7%' bgcolor='#44749D'><center><font color=white><b>Odgovora</b></font></center><td width='10%' bgcolor='#44749D'><center><font color=white><b>Autor</b></font></center></td><td width='7%' bgcolor='#44749D'><center><font color=white><b>Pregleda</b></font></center></td><td width='15%' bgcolor='#44749D'><center><font color=white><b>Zadnja poruka</b></font></center></td></td></tr>";
while ($row = mysql_fetch_array($query1))
{
$topic_id = $row['ID'];
$topic_views = $row['views'];
$topic_replies = $row['replies'];
$topic_author = $row['author'];
$topic_subject = $row['subject'];
$topic_updated = $row['updated'];
$topic_date = $row['date_writted'];
$t_sub2 = htmlspecialchars($topic_subject);
$t_auth = htmlspecialchars($topic_author);
echo "<tr><td bgcolor='#FFFFFF'><img src='folder.gif'></td><td height='25' onmouseover=\"this.style.background='#8BA8CB'\" onmouseout=\"this.style.background='#FFFFFF'\"><a href='index.php?act=viewtopic&id=$topic_id'>$t_sub2</a></td><td><b><center>$topic_replies</b></center></td><td bgcolor='#FFFFFF'><b><center><small>$t_auth</small></b></center></td><td><b><center>$topic_views</b></center></td><td bgcolor='#FFFFFF'><center>$topic_updated</center></td></tr>";
}
echo "</table>";
izbacuje error u toj liniji u koju sam dodo cellspacing="0"....
ocigledno sam nesto propustio... ( posto ne znam bas puno..

)