php建表程序!
<?php
require("conn.php");
$sql="create table lunzitest";
$sql.="(id int not null auto_increment primary key,";
$sql.="time varchar(20),";
$sql.="name varchar(20),";
$sql.="title varchar(50),";
$sql.="messages text)";
echo "$sql \n";
$out=mysql_query($sql);
if($out) echo("ok!");
else printf("no!");
?>
conn.php
<?php
$conn=mysql_connect("localhost","mis","miss") or die ("failed to access the server");
$sql=mysql_select_db("joke") or die ("select table fail");
?>
lunzi
2005-01-13 21:29:51
评论:1
阅读:2154
引用:0
good!
@2007-06-14 18:56:21 xiaoguo
good!
good!
good!
good!
good!
good!
good!
good!
good!
