Posté : 04-06-2004 18:23
Le tri est tjrs le mm j'ai pas touché à viewforum...
$requete = mysql_query("INSERT INTO forumtopics VALUES (NULL, '$titre', '2', '$posttime', '1', '16', '0', '0')");
$requete = "SELECT topic_id FROM forumtopics ORDER BY topic_id DESC LIMIT 0,1";
$res = mysql_query($requete);
$ray = mysql_fetch_array($res);
$topic_id = $ray[0];
//$postit = "$article";
$time = date("d-m-Y H:i",time()+($gmt*3600));
$textnews = "<p class=\"newsforum\">$article</p>";
$requete = mysql_query("INSERT INTO posts VALUES (NULL, '0', '', '$topic_id', '16', '2', '$textnews', '$time', '', '', '1')") OR die (mysql_error());
C'est pas bon ça ? |