I've been struggling with this one for a couple days now. Basically, I have a small form that updates two fields in a database. I have a third field that contains a password. What I would like to have is an update statement for the form process that updates the two fields, as long as a third field in the form matches a third field in the database, thereby acting as sort of a password protection preventing random users from updating the database.
So, something like this:
"UPDATE table SET COLUMN1 = '" . $_POST["COLUMN1"] . "' WHERE COLUMN2 = '" . $_POST["COLUMN2"] . "' IF password = "xyz"";
Any thoughts?