If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

problem with showing images

friends
i,m facing a problem with showing images stored into my database according to the following
i,m building a news website which shows news and a pic related to each news
i could make a page by which i can store news and a picture with each one
i made this page wich show these news as a title ans a pic beside to each news title every thing is ok but these pics can,t be shown all i can see is a red X mark in the place of the pic although i clicked right click on the red X and saw that the source of the pic is ok with the ip of the each opic
i,m posting the code i did so any one could tell me what is wrong or missing with it

i did a page is called getimage.php
and here is the code of it

<?php
include ("config.php");
// this is to get the id of the required pic
$id=addslashes(@$_REQUEST['id']);
$image= mysql_query ("SELECT photo FROM tourism_news Where id=$id");
$row1 = mysql_fetch_assoc($image);
$myimage= $row1['photo'];