delete hash from users where email='emailaddress@hotmail.com';

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 = 'emailaddress@hotmail.com'

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.