php提示 Table 'table1.zb' doesn't exist,是怎么回事?
$con=mysql_connect("localhost","root","111111")ordie('Couldnotconnect:'.mysql_error()...
$con = mysql_connect("localhost","root","111111") or die('Could not connect: ' . mysql_error()); //这个能成功连接
mysql_select_db("table1", $con) or mysql_query("CREATE DATABASE zb_db1 ");
mysql_select_db("table1", $con) or die('Could not connect: ' . mysql_error());
//这个也成功了
mysql_query("INSERT INTO zb (uname) VALUES ($uname)", $con) or die('Could not connect: ' . mysql_error());; //到这儿输出Table 'table1.zb' doesn't exist 展开
mysql_select_db("table1", $con) or mysql_query("CREATE DATABASE zb_db1 ");
mysql_select_db("table1", $con) or die('Could not connect: ' . mysql_error());
//这个也成功了
mysql_query("INSERT INTO zb (uname) VALUES ($uname)", $con) or die('Could not connect: ' . mysql_error());; //到这儿输出Table 'table1.zb' doesn't exist 展开
展开全部
$con = mysql_connect("localhost","root","111111") or die('Could not connect: ' . mysql_error()); //这个能成功连接
mysql_select_db("table1", $con) or mysql_query("CREATE DATABASE zb_db1 ");
mysql_select_db("table1", $con) or die('Could not connect: ' . mysql_error());
//这个也成功了
mysql_query("INSERT INTO zb (uname) VALUES ($uname)", $con) or die('Could not connect: ' . mysql_error());; //到这儿输出Table 'table1.zb' doesn't exist
mysql_select_db("table1", $con) or mysql_query("CREATE DATABASE zb_db1 ");
mysql_select_db("table1", $con) or die('Could not connect: ' . mysql_error());
//这个也成功了
mysql_query("INSERT INTO zb (uname) VALUES ($uname)", $con) or die('Could not connect: ' . mysql_error());; //到这儿输出Table 'table1.zb' doesn't exist
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
table1数据库下的zb表不存在,可新建一个zb的表!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
数据库存在,表不存在
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |