thanks for your reply and it's a field in the database comment that i need to update through a form, here's the entire portion of the script
PHP Code:
if($update) {
$urh = $DB_site->query("UPDATE raffle_images SET comment='$comment' WHERE id='$id'");
echo "<center><br><h2>Image Options</h2><br><br>";
echo "Updated your comment to $comment<br>$urh";
} else {
$sele = $DB_site->query("SELECT * FROM raffle_images WHERE id='$id'");
echo "<center><br><h2>Image Options</h2><br><br>";
$seleql = $DB_site->fetch_array($sele);
echo "<form action=\"misc.php?action=imgupd\" method=\"post\">";
echo "<textarea name=\"comment\" rows=10 cols=40>".$seleql['comment']."</textarea><br><br>";
echo "<input type=submit name=\"update\" value=\"Update Comment\"></form>";
}
so upon submit(update in this case) the script will run througha nd update the field, and the if($update) {
is workign as it comes up and gives me that it has been updated, although it has not.
but with what your saying above is true, and it's eitehr gonna go through or have an error, i'm thinking it is throwing an error and that the error is error # 1 whatever that one is.
thanks