GigaNews
View Full Version: FileSharing Talk

Threads in some sections have NO links for Guests, Register before you can view those threads or Log In now.
Your Ad Here

Pages: 1

help with SUM()

(Click here to view the original thread with full colors/images)




Posted by: susapra

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.

___________________________________
baby gift (www.wisheo.com) Audi A4 Muffler (http://www.drivewire.com/vehicle/audi-a4/muffler/)






vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2008 - Created by Stefan "Xenon" Kaeser