php - Unable to Display Images from MySQL -
i unable display images mysql. i've checked path etc. still there broken images on site. below code. please guide me.
<div id="right_content"> <div id="headline"> <div id="headline_content"> <b>welcome guest!</b> <b style="color:#f56013">shopping cart</b> <span>-items: -price: </span> </div> </div> <div id="products_box"> <?php $get_products ="select * products order rand() limit 0,6"; $run_products = mysqli_query($con,$get_products); while($row_products=mysqli_fetch_array($run_products)){ $prod_id = $row_products['product_id']; $prod_title = $row_products['product_title']; $prod_cat = $row_products['category_id']; $prod_brand = $row_products['brand_id']; $prod_price = $row_products['product_price']; $prod_desc = $row_products['product_desc']; $prod_img =$row_products['product_img1']; echo " <div id='single_product'> <h3>$prod_title</h3> <img src='admin_area/product_images/$prod_img' width='180' height='180' /> </div> "; } ?> </div>
as per comment, problem solved. images not moving directory , didn't check that. when manually copied them specified directory problem gone.
Comments
Post a Comment