php+javascript幻灯片生成代码

原创
2016-06-08 17:26:40 1525浏览

$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);
?>






骞荤
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。