Note that there are some explanatory texts on larger screens.

plurals
  1. POImage doesn't show when script is running on production server
    text
    copied!<p>I have this script that work with no problems on my XAMPP local host:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Gallery&lt;/title&gt; &lt;style type="text/css"&gt; body { margin: 0 auto; padding: 0; width: 500px; color: #000000; position: relative; } .gallery { list-style: none; margin: 0; padding: 0; } .gallery li { margin: 10px; padding: 0; float: left; width: 120px; height: 100px; } .gallery img { background: #fff; border: solid 1px #ccc; padding: 4px; width: 110; height: 90; } .gallery a:hover img {border: 1px solid #0000ff; position: absolute; top: 0; left: 0; width:400; height:300; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;ul class="gallery"&gt; &lt;?php //header("Content-type: image/jpg;\n"); $db_connect = mysql_connect('localhost', 'Beta_tester', 'alfa1gama2'); if(!$db_connect) { die('Не може да се осъществи връзка с базата данни' . mysql_error()); } mysql_select_db("Beta_tester", $db_connect); $rs = mysql_query('SELECT * FROM gallery WHERE oferta_id=2'); while($row = mysql_fetch_array($rs)) { echo '&lt;li&gt;&lt;a target="_blank" href="http://mysite/fimage.php?id='.$row['id'].'"&gt;&lt;img src='.$row['location'].' alt="image"/&gt;&lt;/a&gt;&lt;/li&gt;'; } ?&gt; &lt;/ul&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>On my local server it's ok, but when I upload it on the production server i get this output:</p> <p>Pic1: <img src="https://i.stack.imgur.com/eznv4.gif" alt="enter image description here"></p> <p>It's not shown very good but this is just an empty block with an icon of broken image.The head(content) is commented - I added it later because I saw a similar problem solved with this, but maybe I'm using it wrong or maybe it's something else.</p> <p>Thanks</p> <p>Leron</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload