Salve a tutti,
non riesco a trovare l'errore in questo script
Codice PHP:
<?php
include "datideldatabase.php";
function 
cercapar($parola,$giorni) {
        include (
'datidb.php');
        
mysql_select_db($db_name$db)
        or die (
"Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
        
$testoq "SELECT post_content FROM wpa_posts ORDER BY post_date_gmt DESC LIMIT 0,10";
        
$testor mysql_query($testo$db);
        while (
$testorow mysql_fetch_array($testor)) {
                
$testo $testorow['post_content'];
                echo 
$testo;
        }
        
mysql_close($db);
}

cercapar("abc",2);
?>
Alla fine mi restituisce

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/public_html/stats/ricercaparola.php on line 9