<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042118" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042118</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thanks, works.</title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-help-2#comment-1234405</link>
    <description> &lt;p&gt;Thanks, works.&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Oct 2008 21:13:28 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1234405 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Darn it, snipped by Matt.</title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-help-2#comment-1234374</link>
    <description> &lt;p&gt;Darn it, snipped by Matt. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Oct 2008 18:30:11 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1234374 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You need to join your</title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-help-2#comment-1234373</link>
    <description> &lt;p&gt;You need to &lt;a href=&quot;http://en.wikipedia.org/wiki/Inner_join#Inner_join&quot;&gt;join&lt;/a&gt; your tables.&lt;/p&gt;
&lt;p&gt;So the query would be something like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT * FROM Pictures INNER JOIN Categories ON Pictures.catid = Categories.catid&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now all values from your category table will be in the $row variable in your loop.&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Oct 2008 18:29:00 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1234373 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You&#039;d want to use an inner</title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-help-2#comment-1234372</link>
    <description> &lt;p&gt;You&#039;d want to use an &lt;a href=&quot;http://www.w3schools.com/Sql/sql_join_inner.asp&quot;&gt;inner join&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Something like:&lt;/p&gt;
&lt;p&gt;SELECT * FROM Image INNER JOIN Category ON Image.CategoryID = Category.CategoryID&lt;/p&gt;
&lt;p&gt;You select everything from table Image, and then JOIN it with Category where the Image&#039;s CategoryID matches one in the Category table.&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Oct 2008 18:28:00 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1234372 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
