Hi guys..Good Day!
I just want a little help why my dynamic image from mySQL database will not display in firefox but with IE it will. Ive created a table to hold the image where i only save the image path which was located in the server folder img.
This is the code to get the image location/path in mySQL.
mysql_select_db($database_nmpc_web_conn, $nmpc_web_conn);
$query_rec_img = "SELECT * FROM images ORDER BY id ASC";
$rec_img = mysql_query($query_rec_img, $nmpc_web_conn) or die(mysql_error());
$row_rec_img = mysql_fetch_assoc($rec_img);
$totalRows_rec_img = mysql_num_rows($rec_img);
This is now the code where i load the image path and display it in a div..
<div class="right-pic medium-pic">
<a href="<?php echo $row_rec_homeheadlines_center['pic_zoom']; ?>" title="2011 General Assembly Program Cover" id="single_image" class="picture"><img src="<?php echo $row_rec_homeheadlines_center['pic_normal']; ?>" alt="GA Program Cover" />
<span class="zoom"></span></a>
</div>
And this is the CSS
.right-pic {
display:block;
float:left;
margin:6px 40px 30px 0;
position:relative;
width:100%;
}
.medium-pic {
height:170px; width:275px;
}
Image path view in MySQL DB is something like this pic\Pic_Mix\pic1_s.JPG
Thank you in advanced for helping.
God bless!