Jump to content


Member Since 20 May 2008
Offline Last Active Yesterday, 03:44 PM

Posts I've Made

In Topic: Fatal error: Class 'PDO' not found

Yesterday, 03:47 PM

Hello guys.

Thanks. the issue have been resolved. The problem is from godaddy.

In Topic: notification badge in php

30 January 2015 - 10:33 PM

That really depends. Usually you'd just query to see if there are any new notifications for the user on each page (like the menu part of your code), and if so use the appropriate CSS. Like for bootstrap: http://getbootstrap....ponents/#badges

hmmm. thanks. but how can one query for new notification thats the issue. doing a select alone can't get the new notification. my idea is you have to have a last count and any other entry that follows will be deemed as new. but the problem is I can't codify it.

In Topic: Reward Logic

06 January 2015 - 09:34 PM

You have a table to store users who sign up to become referrers. When you decide that they have reached a certain level you post that value to their "referrer" record. And so on. I assume that you rate them at a certain level for all people that they refer or for all products that they can be referring. If not, you have to create a referrer record for each user for each category (not level) of referral they make in the same fashion.

Obviously the referrers must login before referring someone. Periodically you go through your table (monthly?) and look for referrals made since the last-paid date on the record and report out (or store) the referrer's name/id and the amount to be paid this time and post that record with the current date as the last-paid date. You might also save the total amount earned over time.

Am I close? Does this make sense?

Thanks. Will give it a shot

In Topic: Value not echoing

30 December 2014 - 04:32 AM

There a 3 level 2 users (Tom, Tommy, Kim) so they each receive £4.50/3 (ie £1.50 each)
There is 1 level 3 user (Henry) so he receives £13.50.

sorry. my mistake.
what I mean is for level 2 the parent receives 9% of 50 and level 3, he receives 27% and 64% for level 4.

And so also will a referrer that have become a parent receive.

In Topic: Value not echoing

30 December 2014 - 02:36 AM

So given this situation

 --- tommy
 --- tom
 --- kim
 --- --- henry

Frank (2 refers) gets 1.05

Jimmy (1 refer) gets 1.00

Kim (1 refer) gets 1.00


Is that right?


Assuming I set aside £50 for refering some one

Level 1 will have nothing (since you are level 1)
Level 2 will have £4.5 (9% of £50)
Level 3 will have £13.50 (27% of £50)
Level 4 will have £32 (64% £50)

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime