📄 19-1-1.php
字号:
<?php
$host="localhost";
$user="root";
$password="";
$db="test";
$table="ajax_book";
$my_conn=mysql_connect($host,$user,$password);
mysql_select_db($db,$my_conn);
$sql="CREATE TABLE $table
(
id int(5) not null auto_increment primary key,
author varchar(10) not null default '',
time varchar(20) not null default '',
content text not null
)";
$result=mysql_query($sql,$my_conn);
if($result)
{
echo $table."表创建成功!";
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -