Moved from
Thumbnail Generator comments.
Hello,
learning to create my own classified ad. see the following function to display
images, images are located(/images). how do i add your script to work in the
folowing function:
function random_ad_display($feature_result)
{ 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>";
}
any help you can give me would be greatly appreciated.
thank you