The second week of the project was spent working on the PHP programming for the website.
Work done, week 2, 19-25 July;
signup.php - This page allows users to sign up to the site, choosing a username and password.
confirm.php - This page is used to activate users membership to the site, throught a link that is emailed to them.
sessions.php - This page is inlcuded on pages where the user is required to be logged in. It checks if the user is logged on and if not redirects them to the login page, otherwise it allows them to continue.
login.php - This is where members login to there accounts.
logout.php - This is where logged in members can log out.
highscores.php - This page displays the highscores list for the game. It only shows a limited amount of scores per page and splits the rest onto other pages.
The PHP programming will be finished hopefully on Monday the 28th of July, which is ahead of schedule of the currently set date of 1st August.
There were no problems faced this week.
The only new knowledge gained this week is that PHP if and else statements do not required '{' and '}' when only being a single line of actions. I do not like this though as it means that the code is inconsistent in its look so I have put them in anyway.
Will
Saturday, July 26, 2008
Saturday, July 19, 2008
Week 1 - Starting the website
This is the first entry for my blog about my major project.
My major project is a Flash game called Beer Defender. There will also be a website built with PHP and utilising a MySQL database.
There is fourteen weeks to do the project, there is also two weeks holidays in there somewhere, but they don't count, because they're for holidays not work.
Work done during week 1, 14-18 July;
Database tables created - On phpMyAdmin, as well as code stored in text document for backup or if required elsewhere.
index.php - Made the index page for the site, with includes for other pages required, bdconnection, header, menu, userbar, footer, and CSS.
bdconnection.php - Contains all the information required to connection to the database, as well as the tables names in the database stored as variables so they can easily be changed.
userbar.php - Wrote the PHP for the userbar page, which displays different information depending on weather the user is logged in or not.
menu.php - Made the menu page for the Main menu using XHTML
format.css - Started doing the main css page, put in some basic code to give the site the rough shape. Using different background colours to clearly identify different sections of the page.
Will
My major project is a Flash game called Beer Defender. There will also be a website built with PHP and utilising a MySQL database.
There is fourteen weeks to do the project, there is also two weeks holidays in there somewhere, but they don't count, because they're for holidays not work.
Work done during week 1, 14-18 July;
Database tables created - On phpMyAdmin, as well as code stored in text document for backup or if required elsewhere.
index.php - Made the index page for the site, with includes for other pages required, bdconnection, header, menu, userbar, footer, and CSS.
bdconnection.php - Contains all the information required to connection to the database, as well as the tables names in the database stored as variables so they can easily be changed.
userbar.php - Wrote the PHP for the userbar page, which displays different information depending on weather the user is logged in or not.
menu.php - Made the menu page for the Main menu using XHTML
format.css - Started doing the main css page, put in some basic code to give the site the rough shape. Using different background colours to clearly identify different sections of the page.
Will
Subscribe to:
Posts (Atom)