MMDT1146 PHP Programming
Week 2
Week 2 General Notes:
Review HTML concepts. To test if php is running, use this script: <?php The quickest way to display all php errors and warnings is to add these lines to your PHP code file: <?php |
Lab 2 This lab is to test your knowledge of being able to intersperse PHP code within HTML code. Create a subfolder on your webserver named "lab2". (This may already be done for you from doing the in class exercises.) Under the subfolder "lab2" that you just created, create the file "lab2.php". "lab2.php" must contain several items. Your resulting output should like similar to this. Title your page. Create a table, or div layouts, of at least two cells in size. In the top cell: In the bottom cell: Echo the calculations to the screen and format the numbers so that there is a comma in the thousands place and there is only one digit after the decimal point. Echo your value of PI to the screen. Assignment is due 1 week from when it was assigned. 50% penalty if late.
|