Codice PHP:
$query = "SELECT * LEFT news,50 FROM MI_news WHERE id AND accettato = '1' ORDER BY id DESC ";
$result = mysql_query($query, $db);
while ($row = mysql_fetch_array($result)) {
echo "
<table>
<tr>
<td>
[b]$row[titolo][/b]
</td>
<td>
([i]$row[ora][/i]
</td>
<td>
[i]$row[data][/i])
</td>
</tr>
</table>
<table>
<tr>
<td>
$row[news]
----------
</td>
</tr>
</table>
"; }
questo è il codice che sto usando...
mi da erroe a questa riga
Codice PHP:
while ($row = mysql_fetch_array($result)) {
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mhd-01/www.maxiita.org/htdocs/ita/prova.php on line 17
cosa c'è di sbagliato? :berto: