Correction status:Uncorrected
Teacher's comments:
PHP运行原理
用户在浏览器搜索时,浏览器会传送请求服务器程序html或php,服务器接收到请求程序后分析是html还是php,如果是html文件则立即返回html页面、css、js等相关资源,如果是php文件则立即传送给PHP超文本解读器,PHP解读后立即返回html页面、css、js等相关资源给服务器,再由服务器传送给浏览器
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50553 Source Host : localhost:3306 Source Database : user Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-03-26 10:08:10 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` smallint(3) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号', `name` varchar(255) NOT NULL COMMENT '姓名', `age` tinyint(2) NOT NULL DEFAULT '1' COMMENT '年龄', `sex` varchar(255) NOT NULL COMMENT '性别', `mobile` varchar(255) NOT NULL COMMENT '手机', `position` varchar(255) NOT NULL COMMENT '职位', `hiredate` datetime DEFAULT NULL COMMENT '入职时间', `weight` double(3,0) NOT NULL COMMENT '体重', `hobby` varchar(255) NOT NULL COMMENT '爱好', `mail` varchar(255) NOT NULL COMMENT '邮箱', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user -- ---------------------------- INSERT INTO `user` VALUES ('1', '小明', '28', '男', '13515677782', '大卫集团', '0000-00-00 00:00:00', '68', '游泳', 'xiaomi@163.com'); INSERT INTO `user` VALUES ('2', '小李', '30', '男', '13515562782', '阿里巴巴', '2019-01-11 00:00:00', '65', '跑步', 'xiaoli@163.com'); INSERT INTO `user` VALUES ('3', '张三', '12', '男', '13888850099', '恒大地产', '2019-02-19 17:33:03', '72', '运动', 'zhangsan@163.com'); INSERT INTO `user` VALUES ('4', '小红', '22', '女', '13666977723', '碧桂园', '2019-03-01 17:34:56', '47', '唱歌', 'xiaohong@163.com'); INSERT INTO `user` VALUES ('5', '李四', '26', '男', '13333235659', '京东商城', '2019-01-14 17:37:12', '80', '健身', 'lisi@163.com');
点击 "运行实例" 按钮查看在线实例