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
https://forums.phpfreaks.com/topic/59365-php-master-any1/
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
https://forums.phpfreaks.com/topic/59365-php-master-any1/#findComment-294910
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.