<?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>axew3.com &#187; Php functions</title>
	<atom:link href="http://www.axew3.com/b10g/category/php-general/php-powerful-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axew3.com/b10g</link>
	<description>axew3 web home</description>
	<lastBuildDate>Mon, 23 May 2011 17:12:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Recursive Php function for items menu list</title>
		<link>http://www.axew3.com/b10g/2010/07/recursive-php-function-for-menu-list/</link>
		<comments>http://www.axew3.com/b10g/2010/07/recursive-php-function-for-menu-list/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 17:24:42 +0000</pubDate>
		<dc:creator>axew3</dc:creator>
				<category><![CDATA[Php functions]]></category>

		<guid isPermaLink="false">http://www.axew3.com/b10g/?p=487</guid>
		<description><![CDATA[There is maybe some situation where it is necessary to build a menu three getting data from a mysql database. This Php recursive function (will be used on next w3images 1.0.6 version), get values and output subsections that belongs to &#8230; <a href="http://www.axew3.com/b10g/2010/07/recursive-php-function-for-menu-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is maybe some situation where it is necessary to build a menu three getting data from a mysql database. This Php recursive function (will be used on next w3images 1.0.6 version), get values and output subsections that belongs to any passed parent section.<br />
It work called inside a <em>foreach</em> construct that pass to the function the start section from where subsections list begin.<span id="more-487"></span><br />
Any help would be appreciated if someone can improve it maybe with more complex mysql queries instead of a Php function recursion.<br />
By the way, it work well at moment and it is the best way i find out while thinking how to get/build a menu three in Php grabbing data about sections and subsections from a mysql database table (the table we are speaking and from where we get data is the <strong><em>wp_w3images_sections</em></strong> table of the w3images gallery images plugin for WordPress).<br />
The function need to be improved and will not be added exactly as is on the w3images-functions.php file.<br />
It list correctly sections and subsections:<br />
<code><br />
unfortunately wordpress return many output problems if i put the function code directly on this post ... the &lt;code&gt; tag seem to be not work correctly in this contest: i will see how to solve this issue shortly, sorry!</code></p>
<p>look for w3_SectionsSubNames() function to the following linked w3it.org forum post, where the code is properly outputted: this until this issue about php <em>code</em> isn&#8217;t resolved here.</p>
<h3>SEE CODE about <em>function w3_SectionsSubNames(</em><strong><br />
-> <a href="http://www.w3it.org/forums/showthread.php?890-Recursive-Php-function-for-items-menu-list&#038;p=9803#post9803">Recursive Php function for items menu list</a></strong></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.axew3.com/b10g/2010/07/recursive-php-function-for-menu-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

