Jump to content

[SOLVED] updating with +1


wrathican

Recommended Posts

Hi there,

 

Thanks for looking

 

im trying to increment an int field with an sql query:

update categories set blog_count='blog_count+1' where id='24';

 

my query runs sucessfully but does not increment the field.

 

trying this on MySQL 4.0.20

 

i guess im either doing it wrong or my version doesnt support it.

 

Help?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/133542-solved-updating-with-1/
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.