|
-
August 26th, 2004, 01:43 PM
#1
Registered User
calling data from mysql
I have a database, single table that goes: Column 1- teacher_id, Column 2- name, Column 3- department. I want to have a .php page that displays each department once and lists each teacher under their correct department. Do I have to make multiple queries?
I have done a SELECT * FROM teachers and I have done a SELECT * FROM teachers WHERE department=English
I'd like to be able to pull this off with one query and without having to create a second table.
any help would be appreciated.
Similar Threads
-
By PacMan in forum Hard Drive/IDE/SCSI Drivers
Replies: 7
Last Post: March 29th, 2013, 12:16 PM
-
By Stanley_Kubrick in forum Microsoft Office
Replies: 7
Last Post: April 2nd, 2003, 06:03 PM
-
By Garfield99 in forum Tech-To-Tech
Replies: 3
Last Post: February 18th, 2003, 05:37 PM
-
By Bill_from_LA in forum CD-ROM/CDR(-W)/DVD Drivers
Replies: 3
Last Post: May 16th, 2002, 06:36 AM
-
By erik0103 in forum CD-ROM/CDR(-W)/DVD Drivers
Replies: 3
Last Post: May 23rd, 2001, 01:41 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks