作者:czx_91_673 | 来源:互联网 | 2018-07-16 16:09
ec(2);<?php教程$bbsconnmysql教程_connect("localhost","root","");mysql_select_db("lsmsql",$bbsconn);$kind"幻灯片";$sql"select*fromsa
$bbscOnn=mysql教程_connect("localhost","root","");
mysql_select_db("lsmsql",$bbsconn);
$kind="幻灯片";
$sql="select * from sa_article where kind='$kind' order by articleid desc limit 0,6";
$result=mysql_query($sql);
$pics=$links=$texts="";
while ($rows=mysql_fetch_array($result)){
$pics.="/attached/".$rows['source']."|";
$links.="show.php?id=".$rows['articleid']."|";
$texts.=$rows['title']."|";
}
$pics=substr($pics,0,-1);
$links=substr($links,0,-1);
$texts=substr($texts,0,-1);
?>