$bas;$i--) { $result = mysql_query("SELECT * FROM rafal_news WHERE num='$i'",$db); $curnews = mysql_fetch_array($result); */ $res = mysql_query("SELECT * FROM rafal_news",$db); while ( $curnews = mysql_fetch_array($res) ) { include("inc_titlebegin.php3"); echo "["; $date = ereg_replace('([0-9]*)-([0-9]*)-([0-9]*)','\3-\2-\1', $curnews["date"]); echo "$date] "; printf("%s par", $curnews["titre"]); $auteur = $curnews["auteur"]; $rs = mysql_query("SELECT nick FROM rafal_membres WHERE num='$auteur'",$db); $auteur = mysql_result($rs,0); echo " $auteur "; include("inc_titleend.php3"); echo "
"; printf("%s", $curnews["texte"]); echo "

"; } ?>