I do a bit of HTML/CSS for fun but I am looking at picking up some programming skills.
I have been reading up on PHP and MySQL. So far I have not found it too hard understanding the concepts such as loops, condition statements etc but I want to get stuck in and start developing an app before I get too bored reading and giving up completely.
My idea...
I happen to be studying for an exam at the moment and have these practice exams on paper. I thought why not put this into an app so I can take the exam on the computer.
Features:
- The app can hold multiple exams
- It can randomise questions or display them in order
- Have the option to display answer for each question
- Time the duration to complete the exam
- Admin page to add new exams and questions/answers
Ok, you guys can stop laughing now, I know this is one step above Hello World but thought I'd make a start somewhere!
I will develop this in PHP/MYSQL or maybe RoR if you guys think its better for a beginner. I think I will be ok reading/writing to the DB but I'm not so sure on site structure, DB design and generally best to way to do it.
If I have an exam made up of 50 questions, each given an ID. If I delete one question how do I update the rest with new IDs? I.e. if I delete question 3, all following questions need to shift their ID back by 1.
EDIT:
How would I represent an instance of one exam in my database schema? The exam and question relationship will be one to many, since questions will be unique to a single exam. But since I am aiming to have multiple exams, how do I represent that?