Jump to content

[SOLVED] UPDATE


jaymc

Recommended Posts

I have a `views` field in my database which stores how many page views Ive had

 

Tp update it I pull out the current value with a SELECT, add++ one to it then UPDATE the new value back in

 

Is there anyway to do this without first pulling out the initial value

 

Perhaps a special field type ?

Link to comment
https://forums.phpfreaks.com/topic/64197-solved-update/
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.