Zend: PHP 101
In this assignment, I followed two different Zend: PHP 101 tutorials to practice my PHP:
- In tutorial 5, I created a simple omelette.php script that reads an omelette.txt file by iterating with a foreach loop, stores the contents as an array of lines, and then echoes the results as an HTML file.
- In tutorial 8, I created a table of animal symbols with a series of SQL statements in my testdb MySQL database. Afterwards, I wrote an animals.php script that creates a mysqli object to establish a database connection to testdb. The script executes a simple query: "SELECT * FROM symbols;" and echoes out the results as a table in HTML.
The omelette.txt recipe

The omelette.php script

The entire 'symbols' table in testdb

Creating the mysqli object and the "SELECT * FROM symbols;" query for animals.php