TheFilmGod Posted July 11, 2007 Share Posted July 11, 2007 Okay, if you can do this you are a php master. The real thing. What I want to program is rather complicatd. Here's a simple summary: A user will register and then depending on activity recieve achievements. This isn't too hard to program but what if there is multiple levels of achievements? For instance, there would be an achievement every 5, 15, 30, 50 posts. How should I put this into a table in MYSQL? Have a column for each of them? I would have a lot more categories of posts, and other categories like "profile views." Another thing, how should I script the php? If lets say I person already made 49 posts and just made another one he should get the 50 posts achievement. Should I do a super huge IF/ElseIF/Else php statement. Or is there a way to simply get the total # of posts and trigger a result? ??? I hope you know what I mean! I'm confuzled myself If you can give a good answer, you are the php master. Certified by me, the original php master! LOL just kidding! Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 11, 2007 Share Posted July 11, 2007 Well if you are talking about using different weights for different post you should have a counting number in a table (saves time in long run) and make an aloghtrim for appending to that digit. For the what to display just make a switch, it will be semi lengthy, but its easy to do 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.