\n"; echo "
\n";
echo "Pick the record to edit.\n"; echo "Click the thumbnail of the record you wish to edit. \n"; echo "Click here to add a new record. \n"; echo "Click here to re-order the records. \n"; echo "\n";
$db = mysql_connect("localhost:3306", "jfellrath", "swordart1");
mysql_select_db("arttalk",$db);
if ($artID) {
if ($submit) {
$sql = "UPDATE tblhistoricalart SET artName='$artName',artFileName='$artFileName',artDescription='$artDescription',artDate='$artDate',artThumb='$artThumb' where artID=$artID";
$result = mysql_query($sql);
echo "Thank you! Information updated. \n"; echo "Return to main edit screen.\n"; } else { // query the DB $sql = "SELECT * FROM tblhistoricalart WHERE artID=$artID"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); echo " ";
printf(" ";
}
}
include('includes/armafooter.html');
?> |