title: Get a different image from the database depending on screen size
body: <p>I am starting to make a web app and the idea is that depending on the url it will be accessed from the load varying text and images from the data base.
  www.mitdomæne.dk/?id=1 0.2 0.3 etc up to 50 pieces.</p>
  
  <p>The problem now is that I must have the dynamic content to switch itself off depending on the mobile or pad (screen size).</p>
  
  <p>Can I get the php to pick what size screen and echo the correct picture out?</p>
  
  <p>So if it's an iphone that looks at the side the image that is 320px wide a loaded and if it is a ipad is 1024px wide.</p>
  
  <p>I have created a date base of MySQL with these fields.</p>
  
  <p>ID:
  company:
  Billed_fil</p>
  
  <p>And the code looks like this.</p>
  
  <p>html:</p>
  
  <pre><code> &lt;div data-role="page" id="side1"&gt;
     &lt;div data-role="header" data-nobackbtn="true"&gt; &lt;/ div&gt;
     &lt;div data-role="content"&gt;
       &lt;p class="brod"&gt; &lt;? php echo $ company?&gt; &lt;/ p&gt;
   &lt;div id="billede"&gt; &lt;img src = "&lt;? php echo $ billed_fil?&gt;" alt = "" border = "0" /&gt; &lt;/ div&gt;
     &lt;/ div&gt;
     &lt;div data-role="footer"&gt; &lt;/ div&gt;
   &lt;/ div&gt;
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code> &lt;? php
  
   include 'firmaer_db_cnx.inc.php';
  
   $ id = $ _GET ['id'];
       $ sql = mysql_query ("SELECT * FROM info_int WHERE id = '$ id'");
  
       $ company list = mysql_fetch_array ($ sql);
  
       $ id = $ company list ['id'];
       $ company = $ company list ['company'];
       $ billed_fil = $ company list ['billed_fil'];
  
   ?&gt;
  </code></pre>
  
  <p>Sql version
  5.1.53
  PHP version
  5.3.4</p>
  
  <p>Is it possible?</p>
  
  <p>//Kasper</p>