mysql - PHP : How to get Sum of values in column in a variable -


i'm trying sum of salary column table. need echo total salary. tried,

select sum(salarycol) my_table;

how can query result variable in php?

select sum(salarycol) total_salary my_table; 

Comments

Popular posts from this blog

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

java - How to handle special characters while unmarshalling xml in JAXB -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -