Still doesnt seem to work...here the whold code block..
<?php
if ($roomNum <> 0) {
@ $db = mysql_pconnect("acidburn.rit.edu", "gcr-klavis", "govrel");
if (!$db) {
echo "Error: Could not connect to database.";
exit;
}
mysql_select_db("gcr-specialEvents");
$sql = "UPDATE requests SET roomNum = '$roomNum' WHERE index = Max(index)";;
$result = mysql_query($sql);
}
?>
Basically this is a part of is a mutlipage form...and i want to add data to the same row that the last page added to.....maybe theres a completely different and better way to do this but this is what i thought would work...