College of Computing and Informatics
Assignment 2
Deadline: Tuesday 01/11/2022 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:
• You must submit two separate copies (one Word file and one PDF file) using the
Assignment Template on Blackboard via the allocated folder. These files must not be in
compressed format.
• It is your responsibility to check and make sure that you have uploaded both the correct files.
• Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces
between words, hide characters, use different character sets, convert text into image or languages
other than English or any kind of manipulation).
• Email submission will not be accepted.
• You are advised to make your work clear and well-presented. This includes filling your information
on the cover page.
• You must use this template, failing which will result in zero mark.
• You MUST show all your work, and text must not be converted into an image, unless specified
otherwise by the question.
• Late submission will result in ZERO mark.
• The work should be your own, copying from students or other resources will result in ZERO mark.
•
Question One
Pg. 01
Learning
Outcome(s):
Describe methods
and tools in
designing a creative
and dynamic
website.
Build web
applications using
PHP and MySQL.
Question One
2 Marks
Write the factorial program using loop in PHP that takes input from textbox and print
result on web page.
Answer:
Question Two
Pg. 02
Learning
Outcome(s):
Describe methods
and tools in
designing a creative
and dynamic
website.
Create web
databases using
MySQL
Question Two
2 Marks
When crating a string column in MySQL, we must identify the column subtype with the
maximum length of the string, List and differentiate the two subtypes of string columns
with example.
Answer:
Question Three
Pg. 03
Learning
Outcome(s):
Describe methods
and tools in
designing a creative
and dynamic
website.
Build web
applications using
PHP and MySQL
Question Three
2 Marks
What is Error Handing, then write a custom error handler script example to illustrate
your answer (your example should not be from the textbook).
Answer:
Question Four
Pg. 04
Learning
Outcome(s):
Describe methods
and tools in
designing a creative
and dynamic
website.
Question Four
2 Marks
Illustrate, the differences between PHP and JavaScript in your own words. (List at least
four differences).
Answer: