J
|
Jane 4/3/2007 |
Jim, global $data,$conn; $str = "select sum(amount) from TableName where amount<=".$data["amount"]; $rs = db_query($str,$conn); $data = db_fetch_numarray($rs); $value = $data[0]; |
G
|
Geoffww 11/3/2008 |
What would you suggest for multiplying two columns and having the sum in the last field of each row? |
T
|
thesofa 11/3/2008 |
to get a total for each line, add a field in the SQL query for the table as follows select
select order id,
select
|
G
|
Geoffww 11/3/2008 |
That's terrific, I'll work on this tonight. Thanks! |