killah Posted March 2, 2009 Share Posted March 2, 2009 How would i go by doing something like this. I got a forum system, i want to integrate a karma system. I don't want 2 fields for the karma like. karma_minus & karma_plus. I would like it to be karma. But i want it to display like Karma: +karma / -karma How ever i was thinking of maybe doing it like this +karma;-karma When updating i explode it to be like Giving plus karma: $karm = explode(';',$user['karma']); $curn = ($karm[0] + 1); mysql_query("UPDATE users SET karma = '".$curn.";".$karm[1]."' WHERE user=1"); Would that work? Link to comment https://forums.phpfreaks.com/topic/147539-how-would-i/ Share on other sites More sharing options...
Yesideez Posted March 2, 2009 Share Posted March 2, 2009 I'm sure there a loads of plugins like this for various forums. Check on the site you got the forums from and check there - chances are someone's already made one. Link to comment https://forums.phpfreaks.com/topic/147539-how-would-i/#findComment-774486 Share on other sites More sharing options...
killah Posted March 2, 2009 Author Share Posted March 2, 2009 I made this system myself. :-\ Link to comment https://forums.phpfreaks.com/topic/147539-how-would-i/#findComment-774489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.