Got a new one here I could use a little help with.
One of my clients collects EEO data as part of its employment process. The forms are generated and stored in a mysql table.
I want to be able to create statistical data based on the birth dates, which are stored as YYYY-MM-DD dates.
Each row in the table is keyed by the applicant's SSN, then has other data besides birth date. I want to be able to determine age (simple math there), then count how many records fall into the 18 to 35, 35 to 45, etc. categories.
I can easily do $age = date("Y") - substr($birth,0,4); to get an age, but I need to be able to count those. Do I need an array or what? Some examples would be helpful.
--
M