Hello all, I have spent a good few days looking over daniweb trying to get the right answer, But I am yet to find what I am looking for.
I have successfully upload my image to a folder store and named my uploaded image.
The path and file name is stored in mysql correctly.
I am having a major issue with displaying the image !!
I have connected to mysql database, pulled information from the table, but for some reason, what ever i do, I jst cant display the image.
$city = $row['city']; //$img1 src =\' '. $row['img1'] . '\'> $img1 = $row['img1']; //header('Content-type: image/jpg'); //$image_name=$row['image_name']; //$img1 src='image/'.$row['img1'].'' .width='50' height='50'> //$img1 <img src='image/'.$row['img1']."' width='50' height='50'> //$img1 <src='image/'.$row['img1'].'' width='50' height='50'> //show data echo "<left>"; echo "<table bordercolor='#FF9900' width=150 cellspacing=1 cellpadding=1 border=0>"; echo "<tr align='left'>"; echo "<tr align='left' width='150'>$compname</tr>"; echo "<td valign='top' <img src='<?php echo $img1; ?>' width='100' height='75' alt='compname' title='$iurl'></td>";
The above code does everything I trying to do, Even when I rollover where the image should be, I get my title tags displaying.
I would love to find the answer to what I am doing wrong or what I am missing,
Hope to get a correct reply soon,
Cheers everyone for taking your time in reading this post,