PDO是一個(gè)數(shù)據(jù)庫(kù)抽象層,通過(guò)它可以連接oracle,mysql等數(shù)據(jù)庫(kù),不會(huì)PDO可以直接用mysqli的方法連接數(shù)據(jù)庫(kù)
2017-07-23
INSERT shop_product VALUES(NULL,'APPLEWATCH','998','1','apple','熱銷');
INSERT shop_product VALUES(NULL,'APPLEWATCH2','998','1','apple','new prod
uct');
修改數(shù)據(jù)庫(kù)編碼:ALTER DATABASE aha2 CHARACTER SET=utf8;
INSERT shop_product VALUES(NULL,'APPLEWATCH2','998','1','apple','new prod
uct');
修改數(shù)據(jù)庫(kù)編碼:ALTER DATABASE aha2 CHARACTER SET=utf8;
2017-07-23
CREATE TABLE shop_product2(
id SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(50) NOT NULL,
price float(8,2) DEFAULT 0.00 NOT NULL,
storage SMALLINT UNSIGNED DEFAULT 0,
brand VARCHAR(20),
status VARCHAR(20));
id SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(50) NOT NULL,
price float(8,2) DEFAULT 0.00 NOT NULL,
storage SMALLINT UNSIGNED DEFAULT 0,
brand VARCHAR(20),
status VARCHAR(20));
2017-07-23
CREATE TABLE shop_cart(
id SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
producted bigint(20) UNSIGNED DEFAULT 0,
userid bigint(20) UNSIGNED DEFAULT 0,
num int(10) UNSIGNED DEFAULT 1,
price FLOAT(8,2) DEFAULT 0.00,
);
id SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
producted bigint(20) UNSIGNED DEFAULT 0,
userid bigint(20) UNSIGNED DEFAULT 0,
num int(10) UNSIGNED DEFAULT 1,
price FLOAT(8,2) DEFAULT 0.00,
);
2017-07-23
講的挺好的,但是php聽(tīng)不懂,php部分聽(tīng)的懵了,箭頭是什么?PDO又是什么?購(gòu)物車在實(shí)際開發(fā)中發(fā)送請(qǐng)求也是使用POST請(qǐng)求,為啥不用ajax呢?
2017-07-04
最新回答 / 一個(gè)假前端
echo $_GET['username'],$_GET['age'] 先接收你傳過(guò)去的值,再echo或者var_dump 就有了