Backboards: 
Posts: 151
In response to "Goddamn, I love you man. " by Dr.Vermin

just ... never forget the WHERE clause, or every user in the entire database will have their password reset to the new one.

Also, check if your database supports transactions.

then you can do:

BEGIN;

UPDATE [...];

SELECT [... SQL to confirm that the change didn't fux0r anything];

If you screwed up, just issue "rollback;" and it restores the database to the way it was before you started. If everything looks OK, you do "commit;" and it saves the changes.


Responses:
Post a message   top
Replies are disabled on threads older than 7 days.