Can you use $_GET to select a column for SUM()
Hi.
I am trying to calculate multiple columns using the GET function to select the column, please see below...
$A=$_GET['a'];
$B=$_GET['b'];
"select *, SUM($A+$B) FROM table"
echo $row['SUM($A+$B)'];
I know it may seem a noob question, but I have tried everythinhg I can think of. Please help me sort it.
Cheers all.
Gingerdan
Subject
Views
Written By
Posted
Can you use $_GET to select a column for SUM()
3153
March 09, 2009 05:15PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.