![]() |
![]() |
Products |
This is a revenue share forum | ||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
help with SUM()
I'm creating something small for reps to follow up on sales.
can somebody help me out with this Quote: $com = SUM($amount*0.25); $qry = "INSERT INTO data (date, rep, client, amount, com, status) VALUES ('$postdate', '$rep', '$client', '$amount', '$com', 'pending')"; $result = mysql_query($qry); if($result) { header("location: success.php"); exit(); }else { die("Query failed"); } the problem is $com commision on sales. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Products |
This is a revenue share forum |
![]() |
![]() |
![]() |