资源简介
php.zip
代码片段和文件信息
ta http-equiv=“Content-Type“ content=“text/html; charset=utf-8“ />
tle>创建数据库 tle>
$a=mysqli_connect(“localhost““root“““);
$cjsjk=“CREATE DATAbase yh“;
mysqli_query($a$cjsjk);
$b=mysqli_connect(“localhost““root““““yh“);
$cjsjb=“CREATE TABLE yh(id varchar(20) PRIMARY KEYpassword varchar(32))“;
mysqli_query($b$cjsjb);
$cjsjb1=“CREATE TABLE dd(xh INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENTid varchar(20)sj datetime)“;
mysqli_query($b$cjsjb1);
echo “创建成功!“;
?>