Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Riki Tiilikainen
Riki Tiilikainen
4,042 Points

Newbie looking for advise on a project

To help myself stay motivated I’ve created a project, but need to ask for some help on how best to achieve my desired outcome. I want to create an automated screening and allocation process for staff parking. These are the steps I’m thinking of following,

  1. Staff member fills out an application form
  2. Information is uploaded to a database (or should the form input be added to an array?)
  3. Uploaded application is scored
  4. Based on the score a parking space is allocated These are my issues, I know how to create the application forms in HTML and uploading to the database is easy enough, but unsure how to score the application and then how to use that score to influence the outcome of the allocation process. What I’m imagining is, based on how someone answers the application they’re assigned a probability score and then if 15 people apply for 10 spaces, that probability score is somehow taken into consideration during a random selection process.

If you have any insight into how you would structure a solution to this problem would be greatly appreciated?

Thanks