The Little Guy Posted July 11, 2007 Share Posted July 11, 2007 How would I do this? I want to incrament spam by one... so how do I do that? UPDATE news_news SET `spam` = SUM(spam + 1) WHERE `id` = '$id' Quote Link to comment Share on other sites More sharing options...
per1os Posted July 11, 2007 Share Posted July 11, 2007 UPDATE news_news SET `spam` = (spam + 1) WHERE `id` = '$id' Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted July 11, 2007 Author Share Posted July 11, 2007 It doesn't give me an error, but it doesn't incrament by one. do you know why? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted July 11, 2007 Author Share Posted July 11, 2007 NVM Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.