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' Link to comment https://forums.phpfreaks.com/topic/59498-solved-incrament-by-one/ 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' Link to comment https://forums.phpfreaks.com/topic/59498-solved-incrament-by-one/#findComment-295673 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? Link to comment https://forums.phpfreaks.com/topic/59498-solved-incrament-by-one/#findComment-295677 Share on other sites More sharing options...
The Little Guy Posted July 11, 2007 Author Share Posted July 11, 2007 NVM Link to comment https://forums.phpfreaks.com/topic/59498-solved-incrament-by-one/#findComment-295682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.