Totals on vertical layout |
12/15/2006 12:24:19 PM |
PHPRunner General questions | |
S
siegfried.hansen author
Okay, looks like I am a real pain in the butt today; I hope noone get pissed <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=4215&image=1&table=forumtopics' class='bbc_emoticon' alt=':unsure:' /> |
|
J
|
Jane 12/19/2006 |
Sieg, function BeforeAdd(&$values) { global $conn; $strSQLInsert = "insert into grand_total (TotalField) values (".$values["FieldName"].")"; db_exec($strSQLInsert,$conn); $str = "select sum(TotalField) from grand_total"; $rs = db_query($str,$conn); $data = db_fetch_numarray($rs); echo $data[0]; return true; }
|