<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1048348" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1048348</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thanks for welcoming,</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/pair-array-results-replace-images#comment-1258438</link>
    <description> &lt;p&gt;Thanks for welcoming, pr0gr4mm3r.&lt;/p&gt;
&lt;p&gt;Exteremely helpful. Thank you so much. &lt;/p&gt;
&lt;p&gt;So i applied as follows:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;echo (&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;lt;div class=&amp;#039;sub15&amp;#039;&amp;gt;&amp;lt;img src=&amp;#039;images/os/$system.gif&amp;#039; /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp; /* Where $system = $row[&amp;#039;config_os&amp;#039;]; */&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;it worked nicely. Thanks for help.&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Dec 2010 08:23:19 +0000</pubDate>
 <dc:creator>erturanya</dc:creator>
 <guid isPermaLink="false">comment 1258438 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi erturanya, welcome to</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/pair-array-results-replace-images#comment-1258348</link>
    <description> &lt;p&gt;Hi erturanya, welcome to TWF.&lt;/p&gt;
&lt;p&gt;What I would do is output the HTML and then insert the MySQL field as the image name.  So when you are ready to output the image, do something like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;images/os/&amp;lt;?=$row[&amp;#039;config_os&amp;#039;]?&amp;gt;.gif&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you don&#039;t have short tags enabled, something like this will work as well:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;images/os/&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;config_os&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;.gif&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;So as long as you have an image in that directory with the file name matching all the database fields (case sensitive), it will work w/o a problem.&lt;/p&gt;
&lt;p&gt;If you want to catch any possible file not found errors, you can do something like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;images/os/&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;config_os&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;.gif&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;img src=&quot;images/os/&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;config_os&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;.gif&quot;&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;img src=&quot;images/os/na.gif&quot;&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The na.gif file can be some sort of generic icon instead of it being a broken/404 image link.&lt;/p&gt;
&lt;p&gt;Doing it this way will allow you to add operating systems options without changing any code in this area.  All you would have to do would be to create it as an option in your form and upload the image icon to the icon folder.&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 Dec 2010 12:13:00 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1258348 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
