Derleek Posted July 24, 2008 Share Posted July 24, 2008 Ok. so i am attempting to update a chunk of text in a database. the query looks like this: UPDATE mail SET msg = '<p> asdfasdfasdf</p>' AND title = 'frustrated' WHERE title = '3' as it should. but when i go to check to see that it is updated properly it does not touch the title in the database and msg gets set to 0. Quote Link to comment Share on other sites More sharing options...
mbeals Posted July 24, 2008 Share Posted July 24, 2008 try: UPDATE mail SET msg = '<p>asdfasdfasdf</p>', title = 'frustrated' WHERE title = '3'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.