Home > php教程 > PHP源码 > php+javascript幻灯片生成代码

php+javascript幻灯片生成代码

WBOY
Release: 2016-06-08 17:26:40
Original
1974 people have browsed it
<script>ec(2);</script>

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






骞荤
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template