Data Manipulation: Basic
Data Manipulation: Basic
Data
BASIC
Manipulation
Eman Gumayagay alias ‘Pogi’
z
TOPIC POINTERS
o INTRODUCTION
o AJAX / XML HTTP REQUEST
o MYSQL CONNECTION
o CREATING INFO TABLE DATA
z
INTRODUCTION
CONSTRUCTOR
The constructor initializes an
XMLHttpRequest. It must be called
before any other method calls.
z
AJAX / XML HTTP REQUEST
SEND
Sends the request. If the request is
asynchronous (which is the default), this
method returns as soon as the request is sent.
z
HTTP REQUEST STATES
z
HTTP REQUEST METHODS
GET
POST
PUT The two most common HTTP methods are: GET
HEAD and POST.
DELETE
PATCH
OPTIONS GET METHOD POST METHOD
CONNECT
TRACE GET is used to request
POST is used to send data
data from a specified
to a server to create/update
resource.
a resource.
Note that the query string
The data sent to the server
(name/value pairs) is sent in
with POST is stored in the
the URL of a GET request:
request body of the HTTP
request:
z
WHY WE NEED TO USE PHP?
Inside index.php
Create a basic HTML
Structure with a script tag
after the body
z
CREATING INFO TABLE DATA - 3
We have created
columns, id, name,
age, address,
date_created
Click save if done
z
CREATING INFO TABLE DATA - 7
THANK YOU