1. Trang chủ
  2. » Cao đẳng - Đại học

Lecture Web technologies and programming – Lecture 26: Database connectivity, data insertion, file upload in PHP - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

20 6 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 1,97 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

A table is a collection of related data, and it consists of columns and. rows[r]

Trang 1

1

Trang 2

2

Trang 3

3

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 11

11

Trang 12

Select phpmyadmin

Trang 13

User name is root

Empty password

Trang 14

Select databases

Trang 15

Enter database name

Select create

Trang 16

Select

database

Trang 17

Table name

Enter no

of columns

Click go

Trang 18

Column name

Data-type

Max length

Trang 19

Primary key

Auto increment

Trang 20

Click to create table

Ngày đăng: 01/04/2021, 18:12

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN