else if ($op == "suite")
{
$sql = mysql_query("SELECT id, auteur, auteur_id, date, titre, texte, suite, cat, bbcodeoff, smileyoff FROM " . NEWS_TABLE . " WHERE id = '" . $news_id . "'");
}
else if ($op == "index_comment")
{
$sql = mysql_query("SELECT id, auteur, auteur_id, date, titre, texte, suite, cat, bbcodeoff, smileyoff FROM " . NEWS_TABLE . " WHERE id = '" . $news_id . "'");
}
else
{
$sql = mysql_query("SELECT id, auteur, auteur_id, date, titre, texte, suite, cat, bbcodeoff, smileyoff FROM " . NEWS_TABLE . " WHERE " . $day . " >= date ORDER BY date DESC LIMIT " . $start . ", " . $max_news);
}
while (list($nid, $autor, $autor_id, $date, $titre, $texte, $suite, $cid, $bbcodeoff, $smileyoff) = mysql_fetch_array($sql)) (cette ligne là)
Partager