OK, I modified your code (see below) and it is highlighting the right spot but it is blank - the photo.gif is missing.
<?php
if ($handle = opendir("./images/cardimages")) {
echo '<select size="1" name="photo">';
// loop through directory.
while (false !== ($file = readdir($handle))) {
if( $file != '.' && $file != '..' && $file != '_vti_cnf' ){
if ($row["image_path"] == "images/cardimages/$file") { ?>
<option value="<?= $file ?>" selected>
<? } else {
echo "<option value=\"" . $file . "\"> " . $file . "</option>";
}
}
}
echo '</select>';
closedir($handle);
}
?>
It looks like the option value, just for the selected option, isn't showing up. Any ideas?
And, thanks so much for your help cgraz!!