PHP Talks to MySQL
Response: 9Bit Intro (right click to download to view source code)
About Assignment:
At first I developed a simple page where the user saw all options (create session and join session) while displaying the value of tables in the background. After making sure I had the PHP working, I decided to play with the user interface design and make it a little more web 2.0.
Speaking technically, the page is created and populated via a blend of PHP, MySQL, CSS, CSS3, and HTML. The PHP communicates to MySQL to get information on which users are on what session. On the MySQL side, there are three tables: Users, Sessions, and Users_X_Sessions. In theory I could have just created the first two tables, since Users to Sessions is a one-to-many relationship. The Users table can contain the foreign key which will tell it which session it is associated with. I wanted experience creating foreign key tables, hence the Users_X_sessions table.

Leave a Reply