PHP 101 Tutorials

The PHP 101 tutorials gave a hands on experience with PHP and the mySQL database query language. We were to perform tuturials part 5, and part 8, and create a working version of both code segments.This gave great instruction and teaching on using PHP to output information from a text file to a webpage, as well as linking a table from within a MySQL database, to a PHP webpage that will run a query, and return the results on the webpage.

Breaking Eggs

In this tutorial, we use PHP to display a Spanish Omelette recipe from a .txt file, to an HTML based webpage. The link to the txt recipe file is below, as well as the link to the recipe on the webpage. Using the code shown below, I was able to display the code by using PHP to integrate mySQL query commands, such as the array_shift method, which removes the first line of the array. Once the document has been conditioned, the resulting data is echoed, and displayed on the webpage.

Omelette Text File

Omelette Code Output

Back to Module Three