delete hash from users where email='';

Why is the above line not working? I want to delete the value in the hash column in the row the contains the specified email.

That should be:

UPDATE users SET hash = '' WHERE email = ''

DELETE FROM is used to delete entire rows.

commented: Big oops inbound. +9
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.