WEB TECHNOLOGIES - ITC 351 Lecture - 9X
WEB TECHNOLOGIES - ITC 351 Lecture - 9X
WEB TECHNOLOGIES - ITC 351 Lecture - 9X
ITC351
Web Technologies
Lecture Nine
Introduction to PHP
Silence Hour
Visit
https://www.w3schools.com/php
/php_mysql_connect.asp
Read for 25 minutes.
1
19-May-22
Today’s Lecture
2.0
1.0
Perform
Connecting
CRUD
to MySQL
operations on
Database
MySQL
using PHP
Databases
using PHP
3.0 4.0
Design Combine PHP
HTML forms and HTML in a
for file single
uploads document
Web Technologies Lecture Slides by : Maxwell Dorgbefu Jnr.
2
19-May-22
3
19-May-22
4
19-May-22
5
19-May-22
6
19-May-22
7
19-May-22
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb <br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
?>
8
19-May-22
9
19-May-22
Exercise
• By using PHP and HTML, produce the 2 and
5 times table from 1 to 50 for your younger
siblings at the basic levels of education.
2 X 50 = 100 5 X 50 = 250
Web Technologies Lecture Slides by : Maxwell Dorgbefu Jnr.
APPRECIATIONS
10
19-May-22
11
19-May-22
Examination
• Your End of Semester Exams is in two
Sections – Sections A and B.
• Section A comprises MCQs and Fill ins
for a total of 40 marks.
• In Section B you are required to
answer a question or two in your
answer booklet for a total of 20
marks. Do read instructions carefully.
• The exams covers all that we have
learnt. Good Luck!!!
Web Technologies Lecture Slides by : Maxwell Dorgbefu Jnr.
12