joemorris86 Posted August 15, 2011 Share Posted August 15, 2011 Does anyone know how I would go about making a form or button that when clicked will increase a number in my database by 1 at a time? Link to comment Share on other sites More sharing options...
JamesB Posted August 15, 2011 Share Posted August 15, 2011 in a php file you could use an sql query something like: UPDATE table SET field = field + 1 WHERE other_field = 'blah' LIMIT 1 Link to comment Share on other sites More sharing options...
Don E Posted August 15, 2011 Share Posted August 15, 2011 I was wondering how to do this same exact thing today as well! Thanks James! in a php file you could use an sql query something like:UPDATE table SET field = field + 1 WHERE other_field = 'blah' LIMIT 1 Link to comment Share on other sites More sharing options...
joemorris86 Posted August 15, 2011 Author Share Posted August 15, 2011 oh, that was really easy, thanks guys. Link to comment Share on other sites More sharing options...
joemorris86 Posted August 16, 2011 Author Share Posted August 16, 2011 edit: figured it out thanks again for your help guys Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.