<?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>面向过程 &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/tag/%E9%9D%A2%E5%90%91%E8%BF%87%E7%A8%8B/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Mon, 01 Oct 2012 14:22:55 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>php递归(过程.更易懂)</title>
		<link>https://www.mudbest.com/php%e9%80%92%e5%bd%92/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 20 Dec 2010 04:43:51 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[递归]]></category>
		<category><![CDATA[面向过程]]></category>
		<guid isPermaLink="false">http://blog.mudbest.com/?p=292</guid>

					<description><![CDATA[很早很早很早写的一个递归，还是用过程写的，有着纪念的意义啊&#8230;..]]></description>
										<content:encoded><![CDATA[<p>很早很早很早写的一个递归，还是用过程写的，有着纪念的意义啊&#8230;..<span id="more-292"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;2765237&quot;);
mysql_select_db(&quot;phpbbs&quot;);
mysql_set_charset(&quot;gbk&quot;);
	$sql=&quot;select * from `bbs_class` where lv_class_id=0&quot;;
	$query=mysql_query($sql);
	while ($rs=mysql_fetch_array($query))
	{
		$result&#x5B;]=$rs;
	}&lt;!--more--&gt;
	function aaa($num)
	{
		mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;2765237&quot;);
		mysql_select_db(&quot;phpbbs&quot;);
		mysql_set_charset(&quot;gbk&quot;);
		$sql=&quot;select * from `bbs_class` where lv_class_id='&quot;.$num.&quot;'&quot;;
		$query=mysql_query($sql);
		while ($rs=mysql_fetch_array($query))
		{
			$result&#x5B;]=$rs;
		}
		$nums=mysql_num_rows($query);
		if($nums==0)
		{
			return false;
		}
		foreach ($result as $val)
		{
			echo $val&#x5B;'class_name'].&quot;&lt;br&gt;&quot;;
			aaa($val&#x5B;'id']);
		}
	}
	foreach ($result as $val)
	{
		echo $val&#x5B;'class_name'].&quot;&lt;br&gt;&quot;;
		aaa($val&#x5B;'id']);	
	}
?&gt;
</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
