Roger Ramjet wrote:And the html table is squashing the image. OK, how are you embedding the image into the table - show us the code.
Basic the name of the image is stored in the database and this script pretty much pulls in the name and finds the image in the /image folder :
random_ad_display($feature_result);
function random_ad_display($feature_result)
{ #$imageurl = preg_replace("/[^\/]*\.php/","", $_SERVER['REQUEST_URI']). "images/";
echo "<table width='500' align='center' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr>";
$i = 0;
while($row1 = mysql_fetch_array($feature_result))
{ if ($i == 2)
{ echo "</tr>";
echo "<tr>";
$image1 = $row1["cf_images"];
echo "<td width='250' height='120'> <div align='center'> <p align='center'><IMG SRC='images/" . $image1 . "'width='150' height='120' /></p> <p>description and ad number</p></td>";
$i = 0;
}
else
{ $image2 = $row1["cf_images"];
echo "<td width='250' height='120'> <div align='center'> <p align='center'><IMG SRC='images/". $image2 . "' width='150' height='120' /> </p> <p> test description 2 testing one two three four five </p></td>"; }
$i++;
} echo "</tr>";
echo "</table>";
}