Twango Posted May 13, 2011 Share Posted May 13, 2011 I have a social network.I want to make it so every time someone logs in, it increments a value in a MySQL database by 1.Would I have to use MySQL update? Or is there some type that any time Select or Insert is used it auto updates? Link to comment Share on other sites More sharing options...
komprenda Posted May 13, 2011 Share Posted May 13, 2011 I have a social network.I want to make it so every time someone logs in, it increments a value in a MySQL database by 1.Would I have to use MySQL update? Or is there some type that any time Select or Insert is used it auto updates?update table_name set var = var + 1[ where <...>] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.