$newtype[$id_type]"; $sql="select * from tb_news order by id_news desc limit 0,7"; $result=mysql_db_query($dbname,$sql); echo ""; while ($r=mysql_fetch_array($result)) { $date_new =displaydate($r[date_news]); echo ""; } echo "
[ $date_new ] $r[title_news]
"; ?>