Jump to content

[SOLVED] adding +1 to a field


denoteone

Recommended Posts

If I have a table named users and a field named 'logincount' that is a small number as of now it is empty

 

I want to updated this number by adding one every time a user logs in. So do I need to get the value of the field and then use php to add 1 and then update the table with the new number? is this the best way to do this?

Link to comment
https://forums.phpfreaks.com/topic/156115-solved-adding-1-to-a-field/
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.