I am trying to re-use code that worked a couple of years ago, but now is broken in Firefox, Opera, and IE.
I cannot figure out if it is my php or the use of images for the the submit button in the form that sends the info back to the server.
[code]
Ceramic Pieces <?php $dbcnx = @mysql_connect('localhost:/tmp/mysql5.sock', 'artshow', 'art381'); if (!$dbcnx) { exit('Unable to connect to the database server at this time.
'); } // Select the art database if (!@mysql_select_db('willywor_sas')) { exit('Unable to locate the student art database at this time.
'); } // if both were up and running, this next bit calls up specific info // from the database and assigns it to a variable. Also checks to see // if a thumbnail has been selected $arts = @mysql_query('SELECT id, arttitle, artmedium, first_name, last_name, filename, award, donors FROM art WHERE categoryid=7'); $curimage = isset($_GET['filename']); if (!$arts) { exit('Error perfoming query: ' . mysql_error() . '
'); } ?>Gallery
<?php if (!isset($_GET['id']) OR $_GET['id'] == ''): ?>while ($art = mysql_fetch_array($arts)) {
$id = $art[‘id’];
$arttitle = $art[‘arttitle’];
$artmedium = $art[‘artmedium’];
$fname = $art[‘first_name’];
$lname = $art[‘last_name’];
$filename = $art[‘filename’];
$thumbname = $filename . ‘_thm’;
echo “”;
}
?>

<?php echo "Always By Your Side
Acrylic on Canvas
Clinton Bosler" ?>
while ($art = mysql_fetch_array($arts)) {
$id = $art[‘id’];
$arttitle = $art[‘arttitle’];
$artmedium = $art[‘artmedium’];
$fname = $art[‘first_name’];
$lname = $art[‘last_name’];
$filename = $art[‘filename’];
$thumbname = $filename . ‘_thm’;
echo “”;
}
?>
<?php echo "" . $curtitle .
"
" . $curmedium .
"
" . $curfname . " " . $curlname .
"
// This if statement checks to see there is an award entered for this artwork
// It returns different html based on the result
if (!$award) {
echo " ";
} else {
echo "<p><strong>" . $award .
"</strong><br />Donated by: " . $donors;
}
?></p>
Any help would be greatly appreciated