[PHP-DB] Multi-level marketing system

2008-08-14 Thread A. Joseph
I want to develop a multilevel marketing system, please can someone give me a good starting point, or if you know a system developed for such, tell me. It will be a hierarchical structure. But members will need to earn money on some level Thank U.

Re: [PHP-DB] Multi-level marketing system

2008-08-14 Thread Jason Pruim
On Aug 14, 2008, at 6:30 AM, A. Joseph wrote: I want to develop a multilevel marketing system, please can someone give me a good starting point, or if you know a system developed for such, tell me. It will be a hierarchical structure. But members will need to earn money on some level

[PHP-DB] mathematical discrepancies

2008-08-14 Thread Andrew Martin
Hello, Can anybody shed any light on this behaviour please? PHP Version 5.2.5 on XP $a = 1754.00 ; $b = 1754.03 ; $diff = abs($b) - abs($a); echo "$diff"; //output: 0.03 $a = 1754.00 ; $b = 1754.09 ; $diff = abs($b) - abs($a); echo "$diff"; //output :0.08999 $a = 1754.01 ; $

Re: [PHP-DB] mathematical discrepancies

2008-08-14 Thread Evert Lammerts
Check http://php.net/manual/en/language.types.float.php Quote: Warning Floating point precision It is typical that simple decimal fractions like 0.1 or 0.7 cannot be converted into their internal binary counterparts without a small loss of precision. This can lead to confusing results: for examp

Re: [PHP-DB] mathematical discrepancies

2008-08-14 Thread Yves Sucaet
Well, yes, it is expected behavior. I think you're confusing the abs() with the round() function (see Evert's answer earlier). abs(-1.05) = 1.05 round(-1.05) = -1 abs(1.35) = 1.35 round(1.35) = 1 hth, Yves - Original Message - From: "Andrew Martin" <[EMAIL PROTECTED]> To: Sent: Thu

[PHP-DB] using multiple apache

2008-08-14 Thread Ron
Hi, I'm not sure if this is the correct mailing list. anyway, i have multiple apache servers, my pages are on php, i'm using DNS SRV, so that at least it's up even when one goes down. my prob is, user are logging in on my site and i am using their username as a session variable to manage thi