Image Problems!
Posted: Tue Jul 27, 2004 2:46 pm
I am making a script within the administration panel of my site which allows me to select which picture I want to display on the front page. The script go's like:
Now the problem is with the <select> tag. I want it to show all of the image names in the list but instead it only displays one which is the actual image name itself.
Hard to explain this but nevertheless, any help appreciated.
Joe
Code: Select all
while (true)
{
$row = mysql_fetch_assoc($result);
if ($row == false) break;
$title = $row['title'];
if (strlen($title) > '230') { $title = substr($title, 0, 230)."..."; }
echo "<tr>";
echo "<td><img src='".$sitename."images/".$row['image']."' title='".$row['title']."' width='120' height='120' align='left'>";
echo "<font face='verdana' size='1'><b>".$row['name']."</b><br><br>";
echo $title."</font><br><br>";
echo "<b>Photograph Selection: </b><select>";
echo "<option value='".$row['name']."'>".$row['name'];
echo "</select>";
echo "</td></tr>";
}Hard to explain this but nevertheless, any help appreciated.
Joe