To be ready to use php and MySQL on your laptop, you need to install a local server that will run php and MySQL on your computer so you can edit files for our exercises and view them through your browser.
Bonus useful tool:
Komodo Edit (a free code editor that will color-code for you and help you with basic syntax like closing brackets correctly)
Dubi Kaufman provided this week's exercises through his website as a zip download:
NOTE: if you are using these files on a PC, you will need to correct the first line of each to get them to run: from
Each exercise introduces a new basic concept:
Learn how to output text to your browser using
Learn how to link to other files and display them using
Learn how to initialize an array using parenthesis and commas
Learn how to use
Class 1 Notes
This is how I used the count function to measure the number of items in my array and if/else loops to add text after each item.
Here's the code (the file is attached below, if you want to download it and run it or fiddle with it):
Here's what should display:
1-1 of 1