<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Baobab: PHP/MySQL Library For The Nested Set Model	</title>
	<atom:link href="https://cubewebsites.com/development/php/baobab-phpmysql-library-for-nested-set-model/feed/" rel="self" type="application/rss+xml" />
	<link>https://cubewebsites.com/development/php/baobab-phpmysql-library-for-nested-set-model/</link>
	<description>web design and development</description>
	<lastBuildDate>Thu, 05 Jul 2012 06:27:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Kevin		</title>
		<link>https://cubewebsites.com/development/php/baobab-phpmysql-library-for-nested-set-model/#comment-637</link>

		<dc:creator><![CDATA[Kevin]]></dc:creator>
		<pubDate>Thu, 05 Jul 2012 06:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=326#comment-637</guid>

					<description><![CDATA[Hi Sir,

I tested out the Animals example with Baobab, and it always throw an exception on the following code? What did I do wrong? thanks.

    public function appendChild($id_parent=NULL,$fields_values=NULL){
        $id_parent=intval($id_parent);
        if (!$this-&#062;db-&#062;multi_query(&quot;
                CALL Baobab_{$this-&#062;forest_name}_AppendChild({$this-&#062;tree_id},{$id_parent},@new_id,@cur_tree_id);
                SELECT @new_id as new_id,@cur_tree_id as tree_id&quot;)) {
                throw new sp_MySQL_Error($this-&#062;db);
        }]]></description>
			<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>I tested out the Animals example with Baobab, and it always throw an exception on the following code? What did I do wrong? thanks.</p>
<p>    public function appendChild($id_parent=NULL,$fields_values=NULL){<br />
        $id_parent=intval($id_parent);<br />
        if (!$this-&gt;db-&gt;multi_query(&#8221;<br />
                CALL Baobab_{$this-&gt;forest_name}_AppendChild({$this-&gt;tree_id},{$id_parent},@new_id,@cur_tree_id);<br />
                SELECT @new_id as new_id,@cur_tree_id as tree_id&#8221;)) {<br />
                throw new sp_MySQL_Error($this-&gt;db);<br />
        }</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
