<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title></title>
        <link>https://interactivetools.com/forum/forum-search.php?k=user%3Ajab788</link>
        <description></description>
        <pubDate>Tue, 26 May 2026 09:10:54 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Ajab788&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [Damon] Displaying uploads on events page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2202048#post2202048</link>
          <description><![CDATA[Hey thank you for taking the time to help. Still can't figure this out! Here's my code:<br /><br /><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  <br />  require_once &quot;/home2/pittbull/public_html/warmemorial/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($eventsRecords, $eventsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'events',<br />  ));<br /><br />?&gt;<br />&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br /> &lt;head&gt;<br />  &lt;title&gt;&lt;/title&gt;<br />  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br />  &lt;style type=&quot;text/css&quot;&gt;<br />    body          { font-family: arial; }<br />    .instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}<br />  &lt;/style&gt;<br /> &lt;/head&gt;<br />&lt;body&gt;<br /><br />  &lt;!-- INSTRUCTIONS --&gt;<br />    &lt;div class=&quot;instructions&quot;&gt;<br />      &lt;b&gt;Sample List Viewer - Instructions:&lt;/b&gt;<br />      &lt;ol&gt;<br />        &lt;?php  ?&gt;<br />        &lt;li&gt;&lt;b&gt;Remove any fields you don't want displayed.&lt;/b&gt; (Most list pages only have title and link fields.)&lt;/li&gt;<br />        &lt;li&gt;Rearrange remaining fields to suit your needs.&lt;/li&gt;<br />        &lt;li&gt;Copy and paste code into previously designed page (or add design to this page).&lt;/li&gt;<br />      &lt;/ol&gt;<br />    &lt;/div&gt;<br />  &lt;!-- /INSTRUCTIONS --&gt;<br /><br />  &lt;!-- STEP2: Display Records (Paste this where you want your records to be listed) --&gt;<br />    &lt;h1&gt;Events - List Page Viewer&lt;/h1&gt;<br />    &lt;?php foreach ($eventsRecords as $record): ?&gt;<br />      Record Number: &lt;?php echo $record['num'] ?&gt;&lt;br/&gt;<br />      Title: &lt;?php echo $record['title'] ?&gt;&lt;br/&gt;<br />      Date: &lt;?php echo date(&quot;D, M jS, Y g:i:s a&quot;, strtotime($record['date'])) ?&gt;&lt;br/&gt;<br />      &lt;!-- For date formatting codes see: http://www.php.net/date --&gt;<br />      Content: &lt;?php echo $record['content'] ?&gt;&lt;br/&gt;<br />      Ticketmaster Link: &lt;?php echo $record['evt_ticket'] ?&gt;&lt;br/&gt;<br />      Venue: &lt;?php echo $record['evt_venue'] ?&gt;&lt;br/&gt;<br />      Month: &lt;?php echo $record['evt_mo'] ?&gt;&lt;br/&gt;<br />      Day: &lt;?php echo $record['evt_day'] ?&gt;&lt;br/&gt;<br />      Year: &lt;?php echo $record['evt_yr'] ?&gt;&lt;br/&gt;<br />      Time: &lt;?php echo $record['evt_time'] ?&gt;&lt;br/&gt;<br />      _link : &lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br /><br />      &lt;!-- STEP 2a: Display Uploads for field 'img' (Paste this anywhere inside STEP2 to display uploads) --&gt;<br />        &lt;!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --&gt;<br />        &lt;?php foreach ($record['img'] as $upload): ?&gt;<br />          &lt;?php if ($upload['hasThumbnail']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php elseif ($upload['isImage']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['width'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['height'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php else: ?&gt;<br />            &lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;Download &lt;?php echo $upload['filename'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br />          &lt;?php endif ?&gt;<br />        &lt;?php endforeach ?&gt;<br />      &lt;!-- STEP2a: /Display Uploads --&gt;<br /><br /><br />      &lt;hr/&gt;<br />    &lt;?php endforeach ?&gt;<br /><br />    &lt;?php if (!$eventsRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br />  &lt;!-- /STEP2: Display Records --&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;</code><br />]]></description>
          <pubDate>Wed, 24 Feb 2010 23:02:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2202048#post2202048</guid>
        </item>
                <item>
          <title>Displaying uploads on events page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201964#post2201964</link>
          <description><![CDATA[We are developing a website for an organization that hosts concert events. On their &quot;events&quot; page they want a small picture for each event along with the title, date and time of the event.<br /><br />I have no problem just listing the events, but I'm having a heck of a time getting the event's image to display with its specific listing. I'm still pretty new to PHP, but I always kept the image associated with the record in the same table as the records. With CMS builder it sends all uploaded images to a different table (cms_uploads) and I'm unfamiliar with how to work with that. <br /><br />We have it set up so the visitor can choose a month and see which events are listed for that month. Here is the code for April.<br /><br /><code>$result = mysql_query(&quot;SELECT * FROM cms_events WHERE evt_mo = 04 ORDER BY evt_day ASC&quot;);<br />$img = mysql_fetch_array($result);<br />$pic = $img['num'];<br />	<br />$image = mysql_query(&quot;SELECT * FROM cms_uploads WHERE tableName = 'events' AND recordNum = '&quot;.$pic.&quot;'&quot;);<br /><br />$nextRow=1;<br />	echo &quot;&lt;tr&gt;&quot;;<br />	while(($row = mysql_fetch_array($result)) &amp;&amp; ($pho = mysql_fetch_array($image)))<br />	{<br />	echo &quot;&lt;td class='events2'&gt;&quot; . &quot;&lt;a href='&quot; . $_SERVER['PHP_SELF'] . &quot;?id=&quot; .$row['num'] . &quot;&amp;mode=eventpage'&gt;&quot;;<br />	echo &quot;&lt;img src='&quot; . $pho['urlPath'] . &quot;' border='0' width='100' /&gt;&lt;/a&gt;&quot; . &quot;&lt;br /&gt;&lt;br /&gt;&quot;;<br />	echo &quot;&lt;a href='&quot; . $_SERVER['PHP_SELF'] . &quot;?id=&quot; .$row['num'] . &quot;&amp;mode=eventpage'&gt;&quot; . &quot;&lt;strong&gt;&quot; . $row['title'] . &quot;&lt;/strong&gt;&lt;/a&gt;&quot; . &quot;&lt;br /&gt;&quot; . $row['evt_mo'] . &quot;/&quot; . $row['evt_day'] . &quot;/&quot; . $row['evt_yr'] . &quot;&lt;br /&gt;&quot; . $row['evt_time'];<br />	echo &quot;&lt;/td&gt;&quot;;</code><br /><br />Am I on the right track? I don't know if I'm even close to doing this right. Any help would be fantastic. Thank you!<br />]]></description>
          <pubDate>Mon, 22 Feb 2010 16:03:02 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201964#post2201964</guid>
        </item>
              </channel>
    </rss>
  