As mentioned in a previous blog entry (See http://raffysaldana.blogspot.com/2007/08/notes-on-php-programming-part-i.html) I am now taking a short course on PHP Programming and MySQL Applications at the University of the Philippines Information Technology Training Center (UPITTC). During day 1 (August 12, 2007) we were given two exercises. Below are the exercises and my solutions.
PROBLEMS:
Exercise No. 1
a. Store your name, address, phone number, and e-mail address in variables with valid names.
b. Display the values of the variables in different lines.
(Optional: Use HTML tags to format your output (e.g., bold, italics, underline, etc.))
Exercise No. 2:
Create a simple PHP script that will determine whether two numbers are odd or even. If both numbers are even, display sum; if bot are odd, display their difference.
If either one is odd and the other is even, display their product.
MY SOLUTIONS:
To view my solutions to these exercises visit the following link:
http://www.freewebs.com/rpsaldana/phpmysql.htm
Cheers,
Raffy
(8/13/07, in Quezon City)
Monday, August 13, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment