Readings:
- W3Schools Online Web Tutorials
- Supplementary textbook:
Boudreaux, T. (2005). PHP 5: Your visual blueprint for creating open source, server-side content. NJ: Wiley Publishing.
This textbook is on reserve at the QC library. Materials covered in class were also scanned in on ERes. You may access it via the link on the right side bar – QC Library EReserve. The password is posted on the Blackboard. Reading this textbook is not mandatory. It is here for your further inquiries.
_______________________________________________
Section 1. Introduction to PHP
[kml_flashembed movie=” http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=php-110511113621-phpapp02&stripped_title=php-7926898″ width=”525″ height=”405″ allowfullscreen=”true” /]
_______________________________________________
Section 2. Echo/Print
[youtube]http://www.youtube.com/watch?v=oK1tBB9nHUE[/youtube]
_______________________________________________
Section 3. Variables
[youtube]http://www.youtube.com/watch?v=Fv9Yx0YzyOw[/youtube]
_______________________________________________
Section 4. If statement
[youtube]http://www.youtube.com/watch?v=oWyh7H1lAmQ[/youtube]
_______________________________________________
Section 5.Arithmetic Operators
[youtube]http://www.youtube.com/watch?v=I_IP_N6HEfY[/youtube]
Assignment Operators
[youtube]http://www.youtube.com/watch?v=fPNmZ94FJfI[/youtube]
Comparison Operators
[youtube]http://www.youtube.com/watch?v=xsIoEEJqPMo[/youtube]
_______________________________________________
Section 6. for loops
[youtube]http://www.youtube.com/watch?v=gDgbYmIdRuA[/youtube]
_______________________________________________
Section 7. While loops
[youtube]http://www.youtube.com/watch?v=QIkDnUoeS70[/youtube]
While statement
[youtube]http://www.youtube.com/watch?v=tIE8gD1XIc0[/youtube]
_______________________________________________
Section 8. Basic functions
[youtube]http://www.youtube.com/watch?v=mlzoS_7Ae18[/youtube]
_______________________________________________
Section 8. Advanced functions
[youtube]http://www.youtube.com/watch?v=FrKThjE2MJs[/youtube]
_______________________________________________
Assignment (5 points):
Use a loop or a function to create a program that displays the following when it is executed:
This is created with PHP:
4 multiplied by 9 equals to 36.
6 multiplied by 12 equals to 72.
8 multiplied by 15 equals to 120.
10 multiplied by 18 equals to 180.
12 multiplied by 21 equals to 252.
14 multiplied by 24 equals to 336.
16 multiplied by 27 equals to 432.
18 multiplied by 30 equals to 540.
20 multiplied by 33 equals to 660.
22 multiplied by 36 equals to 792.
24 multiplied by 39 equals to 936.
26 multiplied by 42 equals to 1092.
28 multiplied by 45 equals to 1260.
30 multiplied by 48 equals to 1440.
32 multiplied by 51 equals to 1632.
34 multiplied by 54 equals to 1836.
36 multiplied by 57 equals to 2052.
38 multiplied by 60 equals to 2280.
40 multiplied by 63 equals to 2520.
42 multiplied by 66 equals to 2772.
44 multiplied by 69 equals to 3036.
46 multiplied by 72 equals to 3312.
48 multiplied by 75 equals to 3600.
50 multiplied by 78 equals to 3900.
After it is done, please upload the .php file to your server and submit the url on the Blackboard under Assignments > Week13.
Leave a Reply