<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Show one image only from a list of image uploads</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Show-one-image-only-from-a-list-of-image-uploads-72182</link>
        <description></description>
        <pubDate>Mon, 17 Aug 2026 13:43:21 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Show-one-image-only-from-a-list-of-image-uploads-72182" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [Mercer Design] Show one image only from a list of image uploads</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2209256#post2209256</link>
          <description><![CDATA[Hi,<br /><br />Each image has a unique num.  So when you're outputting your list of images, you can make each one a link like this<br /><br />EXAMPLE:<br /><code>&lt;?php foreach($record['images'] as $image):?&gt;<br />  &lt;a href=&quot;detailPage.php?imgNum=&lt;?php echo $image['num'];?&gt;&quot;&gt;<br />  &lt;img src=&quot;&lt;?php echo $image['thumbUrlPath'];?&gt;&quot; width=&quot;&lt;?php echo $image['thumbWidth'];?&gt;&quot; height=&quot;&lt;?php echo $image['thumbHeight'];?&gt;&quot; /&gt;<br /> &lt;/a&gt;<br />&lt;?php endforeach ?&gt;</code><br /><br />So in this we're passing the number of the image to the detailPage in a variable called imgNum.<br /><br />On the detail page, when looping through our images, we can make sure we're only outputting that single image.<br /><br />EXAMPLE:<br /><code>&lt;?php foreach $record['images'] as $image):?&gt;<br />  &lt;?php if($image['num']!=@$_REQUEST['imgNum']){ continue;} ?&gt;<br /><br />  &lt;img src=&quot;&lt;?php echo $image['urlPath'];?&gt;&quot; height=&quot;&lt;?php echo $image['height'];?&gt;&quot; width=&quot;&lt;?php echo $image['width'];?&gt;&quot; /&gt;<br />&lt;?php endforeach ?&gt;</code><br /><br />Hope this helps<br />]]></description>
          <pubDate>Wed, 26 Jan 2011 12:28:45 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2209256#post2209256</guid>
        </item>
                <item>
          <title>Show one image only from a list of image uploads</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2209245#post2209245</link>
          <description><![CDATA[I have a single page which has thumbnail uploads, I have javascript on them to make them fade as a rollover so that is why I couldn't have it as a list page, each image links to another page which has the same layout, how can I tell that second page to pull in a certain image from the list of uploads, It's as if each image in the uploads needs to have a number and you tell that page to bring in that number.<br />]]></description>
          <pubDate>Wed, 26 Jan 2011 06:52:22 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2209245#post2209245</guid>
        </item>
              </channel>
    </rss>
  