Hi,
I want a solution for
Suppose there is a table called Emp in that there is 2 column
First column is emp name X,X,Y,Y and second column is salary
1000 ,2000,3000,4000.
Write a code to display sum of the same emp name ,
Like
X+X=3000,
Thank you
i want solution for that
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: i want solution for that
Christopher has provided an SQL solution. Assuming MySQL, displaying it in your web page would require usage of mysql_query(), and mysql_result() / mysql_fetch_assoc() / or mysql_fetch_array(). And then print()/echo your results in your web page or template.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.