<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044422" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044422</link>
    <description></description>
    <language>en</language>
          <item>
    <title>PS, for the heck of it. say</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/help-small-php-application#comment-1243580</link>
    <description> &lt;p&gt;PS, for the heck of it. say you need a list of all items AND the image from the FIRST file uploaded with it (the primary image), and assuming you don&#039;t need AltText as the ItemTitle will work for that in a listing of items. You can use the following. I have it broken up across lines for easier reading here.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;SELECT &lt;br /&gt;&amp;nbsp; i.*, &lt;br /&gt;&amp;nbsp; (SELECT &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f.`Thumb` &lt;br /&gt;&amp;nbsp;&amp;nbsp; FROM &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; `tblFiles` AS f &lt;br /&gt;&amp;nbsp;&amp;nbsp; WHERE &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f.`ItemID`=i.`ID` &lt;br /&gt;&amp;nbsp;&amp;nbsp; ORDER BY `Order` &lt;br /&gt;&amp;nbsp;&amp;nbsp; LIMIT 1&lt;br /&gt;&amp;nbsp; ) AS Thumb &lt;br /&gt;FROM &lt;br /&gt;&amp;nbsp; `tblItems` AS i&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Now you will have all the item fields plus &quot;Thumb&quot;&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Jul 2009 04:01:10 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1243580 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Basically, you will have a</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/help-small-php-application#comment-1243579</link>
    <description> &lt;p&gt;Basically, you will have a table with the content (what you are used to doing with the title,price, etc):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;tblItems&lt;/strong&gt;&lt;br /&gt;
========&lt;br /&gt;
&lt;strong&gt;ID&lt;/strong&gt;   auto-incrementing integer as primary key&lt;br /&gt;
&lt;strong&gt;Title&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Description&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Price&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Other&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now you will have a table to hold the information about the files.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;tblFiles&lt;/strong&gt;&lt;br /&gt;
========&lt;br /&gt;
&lt;strong&gt;ID&lt;/strong&gt;  auto-incrementing integer as primary key&lt;br /&gt;
&lt;strong&gt;ItemID&lt;/strong&gt;  The tblItems.ID (foreign key) of the item this image goes with&lt;br /&gt;
&lt;strong&gt;Order&lt;/strong&gt;  and integer to sort by for ordering the images (if you code that)&lt;br /&gt;
&lt;strong&gt;FileName&lt;/strong&gt; The name of a file that is uploaded to a media directory&lt;br /&gt;
&lt;strong&gt;AltText&lt;/strong&gt;  The AltText for the image / caption&lt;br /&gt;
&lt;strong&gt;ThumbName&lt;/strong&gt;  A resized copy for use as thumbnails (see &lt;a href=&quot;http://www.imagemagick.org/script/convert.php&quot; title=&quot;http://www.imagemagick.org/script/convert.php&quot;&gt;http://www.imagemagick.org/script/convert.php&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Now when you load up the item data, then do a second query to get the image information that goes with it.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Jul 2009 03:55:03 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1243579 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>can you post the url where</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/help-small-php-application#comment-1243565</link>
    <description> &lt;p&gt;can you post the url where your script is currently running ?&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Jul 2009 14:29:46 +0000</pubDate>
 <dc:creator>scriptbazaar</dc:creator>
 <guid isPermaLink="false">comment 1243565 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
