A table is a collection of related data, and it consists of columns and. rows[r]
Trang 11
Trang 22
Trang 33
Trang 4• Writing regular expression in PHP
• Brackets []
• Quantifiers +, *, ?, {int range}, and $
• Sub-patterns
• Predefined character ranges\d:\D:\w:
• Validating name:
• Validating Password:
• Validating date:
• Validating CNIC:
• Validating Email:
• Validating user’s input
4
Trang 5• Defined functions
• preg_match():
• preg_match_all():
• preg_grep():
• String Functions in PHP
5
Trang 6• Intro to MySQL
WAMP
• Storing reference of uploaded file in database
web application with file upload
6
Trang 7• With PHP, you can connect to and
manipulate databases
system used with PHP.
7
Trang 8• What is MySQL?
Widenius's daughter: My
the web
on a server
applications
use
platforms
in tables A table is a collection of related data, and it consists of columns and
rows.
8
Trang 9• Go to home page of WAMP server
database button
9
Trang 10• Creating a table in a database:
databases
columns
10
Trang 1111
Trang 12Select phpmyadmin
Trang 13User name is root
Empty password
Trang 14Select databases
Trang 15Enter database name
Select create
Trang 16Select
database
Trang 17Table name
Enter no
of columns
Click go
Trang 18Column name
Data-type
Max length
Trang 19Primary key
Auto increment
Trang 20Click to create table