刚学php,数据库连接没提示问题,但是就是没有显示任何数据,表中数据都是存在的,
<?$conn=@mysql_connect("localhost","root","qiuyan")ordie("连接错误");mysql_select_db("exe...
<?
$conn=@mysql_connect("localhost","root","qiuyan") or die("连接错误");
mysql_select_db("exercise",$conn);
$sql1="select * from test";
$qy=mysql_query($sql1,$conn);
echo $row[1];
?> 展开
$conn=@mysql_connect("localhost","root","qiuyan") or die("连接错误");
mysql_select_db("exercise",$conn);
$sql1="select * from test";
$qy=mysql_query($sql1,$conn);
echo $row[1];
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询