下載phpstudy參考官網鏈接
https://www.xp.cn/wenda/389.html
第一步:從官網下載phpstudy V8.0版安裝包
下載地址:
1、64位:http://public.xp.cn/upgrades/phpStudy_64.7z
2、32位:http://public.xp.cn/upgrades/phpStudy_32.7z
第2步:安裝解壓成功

第3步:可以新建數據庫,當然默認已經有一個root了。

第4步:下載安裝一個數據庫工具:

第5步:完事在數據庫頁面導入后台寫好的數據表,當然也可以自己去建表
這個是后台寫的數據庫字段以記事本打開的,后面可以直接復制到數據庫工具里面去
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50553
Source Host : localhost:3306
Source Database : nshop
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2020-04-07 15:12:06
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tb_customer
-- ----------------------------
DROP TABLE IF EXISTS `tb_customer`;
CREATE TABLE `tb_customer` (
`tid` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) DEFAULT NULL,
`tel` varchar(11) DEFAULT NULL,
`img` varchar(256) DEFAULT NULL,
`mesg` varchar(255) DEFAULT NULL,
PRIMARY KEY (`tid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of tb_customer
-- ----------------------------
新建好的數據庫

第6步:隨便寫點數據

數據庫就有幾條數據啦!
接下來就是寫接口調用數據庫里面的內容,這個要后台寫程序啦,后續更新......
