ho un problema nn mi stampa il nickname e id_forum giusti
Codice PHP:
<?php
$query="SELECT * FROM topic,utenti_registrati WHERE topic.id_forum='$id' AND topic.id_nick=utenti_registrati.id_nick";
$result=mysql_query($query,$db);
$var=1;
while($arr=mysql_fetch_array($result)){
if($var>0){
echo "<tr>
<td colspan='1' scope='colgroup' align='center' height='5' width='60%' class='lista'>Forum</td>
<td scope='col' align='center' class='lista'>Nick Autore</td>
<td scope='col' align='center' class='lista'>Risposte</td>
</tr>";
}
$var=$var-1;
echo "<tr><td class='header'>".$arr["topic_titolo"]."</td><td class='header'><a href='http://davo90.altervista.org/ProgettoForum/viewprofile.php?id=".$arr["id_nick"].">".$arr["nickname"]."</a></td><td class='header'>".$arr["id_forum"]."</td></tr>";
}
?>