求助php显示mysql数据的一个问题 <?php $mycon= mysql_connect("localhost","root","qwad"); mysql_select_db("glxbook",$mycon); $sql="select * from gly"; $query=mysql_query($sql); $result=mysql_result($query); while($rows=mysql_num_rows($result)) { echo $rows['glyname']; } ?> 试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 错了。应该是这样<?php $mycon= mysql_connect("localhost","root","qwad"); mysql_select_db("glxbook",$mycon); $sql="select * from gly"; $query=mysql_query($sql); $result=mysql_result($query); while($rows=mysql_fetch_array($result)) { echo $rows['glyname']; } ?> 【求教】如何用纯静态页面开发网站 SmartTemplate模板横向显示数据 求助一下,关于cookies. [PHP MYSQL]显示图片的内容 求PHP软件安装程序 为什么这段代码不能读取文件呢 关于preg_match的问题 诚邀高手做个网上数码冲印系统,包括客户端和服务器端。价格面议。 我想把我数据库中的内容都输到表中,可不知在while的{}中写什么, (初学者)php不能接受外来的变量!!! CLI下执行出错 没有记录却统计输出了"1"
$mycon= mysql_connect("localhost","root","qwad");
mysql_select_db("glxbook",$mycon);
$sql="select * from gly";
$query=mysql_query($sql);
$result=mysql_result($query);
while($rows=mysql_fetch_array($result))
{
echo $rows['glyname'];
}
?>