Jump to content

Update but leave whats already saved


nightkarnation

Recommended Posts

Hello!

My doubt is the following...i want to update something but not erase whats already stored just add more into it...i could do this with INSERT INTO but i need to use the WHERE statement...

 

Here's the idea:

UPDATE `nkSoft_clientProjects` SET description = description + 'Blah blah new description' WHERE name = 'Diego' AND project = 'Software Test' 

 

Obviously this code is not giving the expected value...description is giving a new value of 0...

 

Any way to get around this through the UPDATE code?

and/or through the INSERT INTO using the WHERE statement?

 

Thanx in advance!

Cheers,

Link to comment
https://forums.phpfreaks.com/topic/155120-update-but-leave-whats-already-saved/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.