Hello all. First, thanks so much for having a beginner’s forum. That’s me! I am very comfortable in HTML/CSS, and have recently taken the plunge into PHP/MySQL. I’ve watched video tutorials, read documentation, and searched Google for various bits of assistance along the way. I’m having lots of fun with it, but for my first “work” project, I’ve got to move beyond just having fun and actually apply it to a new site.
With that in mind, I’ll likely be presenting multiple threads here over the next several weeks as we move closer to our launch date, and as I run into roadblocks. I’m the type that does a lot of troubleshooting and research on my own when I first run into an issue, particularly if it’s an explicit error. Most of my inquries here will be advice on techniques and how to best accomplish something, with what limited knowledge I have.
So here’s my first one. I have a site that currently contains two tables. One table contains the information about a location, the other contains information on the open employment positions (140 possible columns). Here is an example record for each table:
facility_ID = 1
facility_name = Joe’s Computers
facility_city = Orlando
facility_state = Florida
facility_zip = 12345
facility_contact_name = Joe Johnson
facility_contact_phone = 123-444-5678
facility_contact_email = [email protected]
facility_website = www.joecomp.com
facility_ID = 1
ComputerRepair = YES
Cashier = NO
StockMan = YES
With these tables, I will create the following pages:
[ol][li]List all locations in database, sorted by facility name - COMPLETED
List all locations in a particular state (passed by URL), with a list of any open positions at that location as an
- underneath. - MISSING OPEN POSITIONS
- Computer Repair
- Stock Manager
- Computer Repair [/code]
- Joe's Computers
- Bob's Widgets [/code]
List a particular position name (passed by URL), with a list of any locations that have an opening in that position, grouped and ordered by state - NOT STARTED[/li]
I hope that helps visualize what I’m trying to accomplish. The roadblocks I’m currently up against are getting the open positions to show for #2 above, and needing to know how to approach #3 with all the sorting that is involved.
For #2, I have the value for the open positions showing (YES), but I don’t know the best way to show the position name instead of the value. The reason I structured the table this way is because the client would like to have an interface where they can use checkboxes to toggle the open positions on and off. I also need a way to convert the column name, i.e. “StockMan” to a full name like “Stock Manager”. Perhaps the way I have structured the table isn’t best for this. There are 140 options in the checkbox list, so I’m feeling a bit overwhelmed with variables. I’m doing some additional research to better understand arrays, as I think that may help here.
Can any of you point me in the right direction for any of the issues above? Also, based on the 3 main page types you know I’m creating, any suggestions or thoughts not related to my specific questions would be appreciated as well.
I look forward to hearing from you.