<?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: Codeigniter: ActiveRecord Join Tip</title>
	<atom:link href="http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/</link>
	<description>Tools and Tricks for Life and Tech</description>
	<lastBuildDate>Mon, 23 Jan 2012 14:27:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: AHO</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-4146</link>
		<dc:creator>AHO</dc:creator>
		<pubDate>Fri, 28 May 2010 15:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-4146</guid>
		<description>It helped me Thx a lot</description>
		<content:encoded><![CDATA[<p>It helped me Thx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harpreet bhatia</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-3685</link>
		<dc:creator>harpreet bhatia</dc:creator>
		<pubDate>Thu, 07 Jan 2010 12:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-3685</guid>
		<description>well did not help much. need to join three table with two common keys. The third table had redundancy, having multiple images from the same product. The result showed all the products twice who had 2 images and 3 for three n so on. 

i have something like this
---------------------------------------------------------------- 
$this-&gt;db-&gt;select(&#039;*&#039;);
		$this-&gt;db-&gt;from(&#039;product_category&#039;);
		$this-&gt;db-&gt;where(&#039;product_category.pcat&#039;, $pcat);
		$this-&gt;db-&gt;join(&#039;products_details&#039;, &#039;product_category.id = products_details.product_cat&#039;, &#039;inner&#039;);
		$this-&gt;db-&gt;join(&#039;pro_images&#039;, &#039;pro_images.pro_id = products_details.id&#039;);
		$query = $this-&gt;db-&gt;get()-&gt;result_array();
		foreach($query as $row)
		{
			$data[] = $row;
		}
		return $data;
		$this-&gt;db-&gt;close();


PLease help</description>
		<content:encoded><![CDATA[<p>well did not help much. need to join three table with two common keys. The third table had redundancy, having multiple images from the same product. The result showed all the products twice who had 2 images and 3 for three n so on. </p>
<p>i have something like this<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
$this-&gt;db-&gt;select(&#8216;*&#8217;);<br />
		$this-&gt;db-&gt;from(&#8216;product_category&#8217;);<br />
		$this-&gt;db-&gt;where(&#8216;product_category.pcat&#8217;, $pcat);<br />
		$this-&gt;db-&gt;join(&#8216;products_details&#8217;, &#8216;product_category.id = products_details.product_cat&#8217;, &#8216;inner&#8217;);<br />
		$this-&gt;db-&gt;join(&#8216;pro_images&#8217;, &#8216;pro_images.pro_id = products_details.id&#8217;);<br />
		$query = $this-&gt;db-&gt;get()-&gt;result_array();<br />
		foreach($query as $row)<br />
		{<br />
			$data[] = $row;<br />
		}<br />
		return $data;<br />
		$this-&gt;db-&gt;close();</p>
<p>PLease help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chan</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-3364</link>
		<dc:creator>Chan</dc:creator>
		<pubDate>Tue, 03 Nov 2009 01:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-3364</guid>
		<description>woww... that&#039;s cool, tricky error huh :)</description>
		<content:encoded><![CDATA[<p>woww&#8230; that&#8217;s cool, tricky error huh <img src='http://www.whypad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-3331</link>
		<dc:creator>Roberto</dc:creator>
		<pubDate>Mon, 19 Oct 2009 04:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-3331</guid>
		<description>damn, I was doing the steps of a book, and in the book was that error!!. You saved my day!</description>
		<content:encoded><![CDATA[<p>damn, I was doing the steps of a book, and in the book was that error!!. You saved my day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-1379</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 18 Feb 2009 18:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-1379</guid>
		<description>Ahh, that one got me to for a bit, hehe.</description>
		<content:encoded><![CDATA[<p>Ahh, that one got me to for a bit, hehe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Byron Bennett</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-943</link>
		<dc:creator>Byron Bennett</dc:creator>
		<pubDate>Fri, 26 Dec 2008 01:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-943</guid>
		<description>Excellent...glad it helped!

Byron</description>
		<content:encoded><![CDATA[<p>Excellent&#8230;glad it helped!</p>
<p>Byron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bambangp</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-940</link>
		<dc:creator>bambangp</dc:creator>
		<pubDate>Thu, 25 Dec 2008 07:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-940</guid>
		<description>Thanks byron, it works for me, I almost stuck about joining 2 tables in CodeIgniter. 
Your posting give me some other explanation, really good. Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks byron, it works for me, I almost stuck about joining 2 tables in CodeIgniter.<br />
Your posting give me some other explanation, really good. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: byron</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-424</link>
		<dc:creator>byron</dc:creator>
		<pubDate>Fri, 23 May 2008 03:01:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-424</guid>
		<description>Derek!
Wow!  Thanks for dropping by.  You guys have a great framework in CodeIgniter, and it just keeps getting better.  Congrats on getting ExpressionEngine moved over to CI.  It&#039;s always good PR when you can say that your eating your own dog food.

For all of you who have not explored a PHP framework, you should really give CI a look.  Derek is one of the driving forces (if not &quot;the&quot; driving force) behind Codeigniter.</description>
		<content:encoded><![CDATA[<p>Derek!<br />
Wow!  Thanks for dropping by.  You guys have a great framework in CodeIgniter, and it just keeps getting better.  Congrats on getting ExpressionEngine moved over to CI.  It&#8217;s always good PR when you can say that your eating your own dog food.</p>
<p>For all of you who have not explored a PHP framework, you should really give CI a look.  Derek is one of the driving forces (if not &#8220;the&#8221; driving force) behind Codeigniter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Allard</title>
		<link>http://www.whypad.com/posts/codeigniter-activerecord-join-tip/178/comment-page-1/#comment-423</link>
		<dc:creator>Derek Allard</dc:creator>
		<pubDate>Fri, 23 May 2008 02:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.whypad.com/?p=178#comment-423</guid>
		<description>I bet      

$this-&gt;db-&gt;select(&#039;tr_dests.*, tr_states.state_name&#039;, FALSE);

would have worked for you also.  Looks like active record escaping.

Great to see some writing on CodeIgniter!  Keep up the great work.</description>
		<content:encoded><![CDATA[<p>I bet      </p>
<p>$this-&gt;db-&gt;select(&#8216;tr_dests.*, tr_states.state_name&#8217;, FALSE);</p>
<p>would have worked for you also.  Looks like active record escaping.</p>
<p>Great to see some writing on CodeIgniter!  Keep up the great work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

