a ok grazie.
Senti un'ultima cosa devo fare un join tra due tabelle ed ho fatto questo:
Codice PHP:
$sql="SELECT visited_article.IDArticle, magazine.IDarticle, Line, Category, $article ";
$sql="FROM visited_article, magazine WHERE IDUtente='$_SESSION[awelco_user_visited_article]' ";
$sql="AND magazine.IDarticle=visited_article.IDArticle ORDER BY DateVisits DESC LIMIT 4";
$QueryLV=mysql_query($sql) or die (mysql_error());
ma mi da questo errore:
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 'AND magazine.IDarticle=visited_article.IDArticle ORDER BY DateVisits DESC LIMIT ' at line 1