//select 语句 1.//$q=mysql_query("select * from `newstype` where `kid`='".$_POST['id']."'"); 2.$sql="select * from `newstype` where `kid`='".$_POST['id']."'";
mysql_connect("localhost","root","")or die("链接数据库失败"); mysql_select_db("aaa"); mysql_query("set names'UTF8'"); $sql="select * from `newstype` where `kid` = 0";先查找最初的根目录类型 $query=mysql_query($sql); while($rs=mysql_fetch_array($query)){ $arr[]=$rs; }
?>
文章网址:
随意转载^^但请附上教程地址。
Statement:
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