<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>爱周末 &#187; php无限分类</title>
	<atom:link href="http://zhoumo123.cn/tag/php%e6%97%a0%e9%99%90%e5%88%86%e7%b1%bb/feed" rel="self" type="application/rss+xml" />
	<link>http://zhoumo123.cn</link>
	<description>知识分享，共同进步。zhoumo123.cn</description>
	<lastBuildDate>Thu, 07 Nov 2019 05:53:49 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.1</generator>
	<item>
		<title>PHP无限分类-PHP100代码篇</title>
		<link>http://zhoumo123.cn/php/php-jichu/315.html</link>
		<comments>http://zhoumo123.cn/php/php-jichu/315.html#comments</comments>
		<pubDate>Sat, 06 Sep 2014 00:00:07 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[php基础]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php无限分类]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=315</guid>
		<description><![CDATA[PHP无限分类代码，需要的朋友可以参考下。无限分类代码如下：]]></description>
				<content:encoded><![CDATA[<p>PHP无限分类代码，需要的朋友可以参考下。无限分类代码如下：</p>
<pre class="brush: php; title: ; notranslate">
 &lt;?php 
//无限分类，从子类找所有父类
//$id 子类ID
 function php100_xd($id){
   $sql=&quot;select * from fl where id='$id'&quot;;
   $q=mysql_query($sql);
   $rs=mysql_fetch_array($q);
   $rs['fid']==0 ? &quot;&quot; : fl($rs['fid']);
   echo $rs['name'].&quot;-&quot;;
   }
   
//读取所有父类下面的子类
//$f顶级分类从什么开始,$s样式
 function php100_dx($f=0,$s=&quot;&quot;){
   $sql=&quot;select * from fl where fid=$f&quot;;
   $q=mysql_query($sql);
   $s=$s.&quot;-&quot;;
   while($rs=mysql_fetch_array($q)){
     echo &quot;&lt;br&gt;$s&quot;.$rs['name'];
  flt($rs['id'],$s);
     }
 
   }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/php/php-jichu/315.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
