Originariamente inviato da SupernovaITA
Ciao a tutti!
L'errore è il seguente..
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\programmi\easyphp1-8\www\news\view2.php on line 16
Ecco la parte di codice interessato
codice:
$query = "SELECT id, titolo, testo, data, autore FROM news ORDER BY id DESC LIMIT 0,5";
while ($row = mysql_fetch_array ($query)) {
Dove sbaglio?
Già ke ci sono.. che cosa significa il messaggio di errore?
Grazie..
fai cosi:
codice:
$query = "SELECT id, titolo, testo, data, autore FROM news ORDER BY id DESC LIMIT 0,5";
$dati = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array ($dati)) { //questa è la 16