<?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: Learn PHP: Selecting from a Database</title>
	<atom:link href="http://www.stuffbysarah.net/2006/02/26/learn-php-selecting-from-a-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stuffbysarah.net/2006/02/26/learn-php-selecting-from-a-database/</link>
	<description>PHP, WordPress and Business Ramblings</description>
	<lastBuildDate>Mon, 19 Jul 2010 13:44:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2006/02/26/learn-php-selecting-from-a-database/#comment-317</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Sun, 19 Mar 2006 17:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/02/26/learn-php-selecting-from-a-database/#comment-317</guid>
		<description>Hi Sharon, I&#039;ve not had time to go further into these posts (apologies to everyone else too), but to select from multiple tables as a beginner I&#039;d just go for the method of using

&lt;code&gt;SELECT * FROM table1, table2 WHERE table1.rowid = table2.rowid AND table1.field = &#039;some value&#039;&lt;/code&gt;

Then you access as usual using the field names. If you have fieldnames that overlap (eg. both have &#039;title&#039; as a fieldname) then you can give these alternate names in the SELECT statement. I understand what you mean, there are plenty of different methods to select multiple information, but my MySQL knowledge isn&#039;t very good in the use of multiple tables (well not yet!)</description>
		<content:encoded><![CDATA[<p>Hi Sharon, I&#039;ve not had time to go further into these posts (apologies to everyone else too), but to select from multiple tables as a beginner I&#039;d just go for the method of using</p>
<p><code>SELECT * FROM table1, table2 WHERE table1.rowid = table2.rowid AND table1.field = 'some value'</code></p>
<p>Then you access as usual using the field names. If you have fieldnames that overlap (eg. both have &#039;title&#039; as a fieldname) then you can give these alternate names in the SELECT statement. I understand what you mean, there are plenty of different methods to select multiple information, but my MySQL knowledge isn&#039;t very good in the use of multiple tables (well not yet!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharon Spain</title>
		<link>http://www.stuffbysarah.net/2006/02/26/learn-php-selecting-from-a-database/#comment-316</link>
		<dc:creator>Sharon Spain</dc:creator>
		<pubDate>Sun, 19 Mar 2006 17:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/02/26/learn-php-selecting-from-a-database/#comment-316</guid>
		<description>I think You&#039;ve explained all that really well.  I think selecting from one table is the easiest, the difficulty for me as a learner is selecting data from different tables to display at the same time. I&#039;ve noticed books all have different ways of doing it so it adds to the confusion.  Anyway I like this blog.</description>
		<content:encoded><![CDATA[<p>I think You&#039;ve explained all that really well.  I think selecting from one table is the easiest, the difficulty for me as a learner is selecting data from different tables to display at the same time. I&#039;ve noticed books all have different ways of doing it so it adds to the confusion.  Anyway I like this blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
