Codice PHP:
<?php
require("config.php");
# Recupero i topic del forum
$query = @mysql_query("SELECT * FROM forum_lite_topics
WHERE forum_id = '" . $_GET[f] . "' ORDER BY data ASC");
# Recupero il titolo del forum per il percorso
$query2 = @mysql_query("SELECT titolo FROM forum_lite_main
WHERE id = '" . $_GET[f] . "'");
# Recupero i messaggi nel topic
$query3 = @mysql_query("SELECT MAX(topic_id) FROM
forum_lite_thread");
$result2 = @mysql_fetch_array($query2);
$result3 = @mysql_fetch_array($query3);
# Stampo il percorso
echo "<a href=\"index.php\">[img]http://star.org/main.gif[/img]</a> »
$result2[titolo]";
# Stampo a video tutti i topic del Forum selezionato
while($result = @mysql_fetch_array($query))
{
echo "
echo "<div align='left'>
<table border='0' width='545' height='40'>
<tr>
<td width='373' height='40' bgcolor='#FFFFCC'><ul>[*]<a class="newlink:hover" href=\"thread.php?f=$_GET[f]&t=$result[id]\">";
$result[titolo]</a>
di $result[autore]</br></td>
<td width='156' height='40' bgcolor='#FFFFCC'></td>
</tr>
</table>
</div>\n";
}
# Recupero il valore più alto di topic_id e lo incremento di uno
# per creare il link nuovo topic
$topic_id = $result3[topic_id]+1;
echo "
<a href=\"new.php?f=$_GET[f]&t=$topic_id\">
[img]http://starorg/nuovadiscus.gif[/img]</a>"; ?>
tutto questo codice dice che è errato ma io nn trovo niente di errato
potete spiegarmi il xkè????
grazie
ciao