Introduction to PHP part3
-
Upload
fontaine-callum -
Category
Documents
-
view
47 -
download
1
description
Transcript of Introduction to PHP part3
-
Introduction to PHP part3
-
Outline
-
, Ex: GoogleHTML(Form)Web server,
-
PHP
PHPPHPUser input dataPHPPHP
-
(Form), (Text), (Password), (Radio), (Check Box), :(Text Area)web server
-
(Form)GETPOSTGET255 ?1=&2=http://ip/get.php?a=1&b=2POSTphp
GETPOSTserver, phpphpphpip
-
PHP (GET Method)serverperson.html,
htmlGET, server, serverget.php, , get.php(person.htmlget.php)
-
submit, serverGET, get.php
-
get.php$_GET:formnameechoclientstrcmpfunction, 0
-
PHP (POST Method)servermessage.html,
message.html
-
POST methodname=John message=Hello
-
message.php$_POSTPOSTdate(Y-m-d H:i:s), echo HTML
-
Outline
-
, ,
-
, ,
-
, , ,
102-2222204-1111303-5555
111/233211/241
-
, , DDL
-
(cont)(primary key)(foreigner key)(primary key): , ,
102-2222204-1111303-5555
-
(foreigner key): ,
102-2222204-1111303-5555
111/233211/241
-
MySQLPHP, PHP+MySQLMySQL, phpMyAdminphp3MySQLWebMySQL
-
phpMyAdminhttp://ip/home/mysqlIPMySQL serverip address, , PHP serverIP
-
root, , root
-
, phpMyAdmin, Program Files\EasyPHP5.3.0\phpmyadminconfig.inc.php$cfg['Servers'][$i]['password']
-
Primary key, VarChar,
-
Designer,
-
,
-
(SQL)Access, , SQL
-
PHP(), php?
PHPMySQLHTML
-
: serverbookstore.html, Peh, php
-
10 (), , , (50% bonus)
***