Module 9: Creating My First MySQL Table
For this module, I worked inside InfinityFree’s control panel and phpMyAdmin to create my first MySQL table. This was a simple assignment, but it’s a key piece of understanding how PHP and databases connect later on. My database is named module9_db , and I built a table called users with an auto-incrementing ID and two text fields for first and last names. Step 1 – Creating the Database I started in my InfinityFree account under MySQL Databases and clicked Create New Database . InfinityFree automatically adds its account prefix, so the final name looked like if0_39835771_module9_db. The process itself was straightforward, no configuration needed beyond giving it a name. Step 2 – Designing the Table in phpMyAdmin Next, I opened phpMyAdmin from the panel to design the table. I named it users and added three fields: id – INT(11), set as the Primary Key and Auto Increment firstname – VARCHAR(50) lastname – VARCHAR(50) Choosing the right data types was the main point here. INT is used for ...