Computing.Net > Forums > Database > Database query

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Database query

Reply to Message Icon

Name: BASSUHG
Date: March 18, 2009 at 06:36:17 Pacific
OS: Windows XP
Subcategory: MySQL
Comment:

I have a table with roll num,name,games. Roll num is primary key,
I am able to store the data in mysql table and able to retrieve it back using PHP.

I enter the details through the form using php script.

01
A
Tabletennis

02
A
Cricket

03
B
Tabletennis

04
B
Cricket

05
C
Tabletennis

06
C
Cricket


I am able to get this using php script
ROLLNUM NAME GAMES
01 A Tabletennis
02 A Cricket
03 B Tabletennis
04 B Cricket
05 C Tabletennis
06 C Cricket.

But I need like

Name TableTennis Cricket
A 1 1
B 1 1
C 1 1
Total 3 3
How TO approach this issue? If any one has the query to process this please let me know…
Thanks in Advance, its Urgent.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Schedule emails from Wind... wipe out hard drive



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Database query

Access database query www.computing.net/answers/dbase/access-database-query/287.html

Recommended Books www.computing.net/answers/dbase/recommended-books/81.html

search in one of four tables www.computing.net/answers/dbase/search-in-one-of-four-tables/195.html