Jump to content

PHP Master Any1?


TheFilmGod

Recommended Posts

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 :P

 

If you can give a good answer, you are the php master. Certified by me, the original php master! LOL just kidding!  ;D

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.