Total members 9951 | Gratitudes |It is currently Sat Feb 11, 2012 9:14 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: Unique Row Count Across Columns
PostPosted: Tue Aug 17, 2010 1:37 pm 
Offline
Newbie
User avatar

Joined: Tue Aug 17, 2010 1:33 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time

Hi all,

I've been learning PHP and SQL slowly over the past couple of weeks for a project (so please be gentle!).

I have a database, MEMBERS, as follows:
Code:
PHP Syntax (Toggle Plain Text)

   1.
      ID | Name | Job Title | Current Employer | State | Manager
   2.
      1 | Joe Smith | Sample Title | Big Company | CA | No


There are several thousand entries and I wish to count them. I have a GET search page where a person can search for any of the fields, eg. ID, Name, Title, etc. It works as intended. So if I search for a job title, it returns all IDs, names, etc associated with that job title.

However, I also want to show a Results Summary somewhere on the results page that also counts the number of unique results.

Eg. I search for Developer:

Job Title:
Software Developer (835)
I.T. Developer (500)
Developer (233)
...

Current Employer:
Friendly Company (200)
Analyze This (145)
...

State:
CA (456)
TX (340)
...

Manager:
Yes (200)
No (2500)

The best example I can think of is SimplyHired.com where you enter a search term and it summarizes all the fields.

Further, for the sake of narrowing the results, I want to click on each link and then limit the results based on that condition. Eg. If I click on Friendly Company (200), it will then update the search results page with entries only applicable to that company, and all other row counts for each column heading would adjust accordingly. Eg. find and count unique job titles in Friendly Company, states, etc.

I understand that this might be an onerous request so if someone could kindly point me in the right direction, I'd be most appreciative. Thanks!

_________________
http://BookmarksHub.info is a SEO friendly Dofollow Social Bookmarking Site. It allows you Keep, discover, share and promote the best of the Web.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 Three different columns Frameset  HTML examples  msi_333  0
 count the number of files in directory & its sub directories  PHP examples  msi_333  0
 Need a unique style ?  PHPbb3 styles  msi_333  3
 count elements in a vector  C++ examples  mileloader  0
 String char count  PHP Tutorials  msi_333  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team