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

python - PyInstaller UAC not working in onefile mode -

python - RuntimeError: can't re-enter readline -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -