MySQL Forums
Forum List  »  Knowledge Base

Can you use $_GET to select a column for SUM()
Posted by: Daniel White
Date: March 09, 2009 05:15PM


I am trying to calculate multiple columns using the GET function to select the column, please see below...


"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.


Options: ReplyQuote

Written By
Can you use $_GET to select a column for SUM()
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.