include ("inc.php"); $i=3; $conn1=mysql_connect($data_source,$data_user,$data_password); mysql_select_db($data_use); $result_read1=mysql_query("select id,index_ti from xinwen where xwclass=30 order by pub_time desc,vtime desc limit 6");//xwclass=30是外事新闻 while($tmp=mysql_fetch_array($result_read1)) { $data[$i++]=$tmp; } ?>