Salve ho un problema con un gestore di news.
Vi illustro il problema:
ho inserito nell foot del mio sito, all'interno di una tabella, il seguente codice:
ho fatto include in tutte le pagine ed e' tutto ok!Codice PHP:
<?
$tpath = "/membri/hcpirati/phpnews/";
$c = "9";
include($tpath . "news.php");
?>
All'interno di una pagina invece ho questo errore:
E R R O R
Couldn't select news:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE cat = '9' ORDER BY date DESC LIMIT 0, 15' at line 1
Perchè nelle altre pagine funziona tutto bene mentre in questa pagina ho l'errore ???
grazie!