这个是哪错了,为什么没有输出我要的标题?<html><head></head><body><?php$dbhost = 'localhost'; $dbuser = 'root'; //你的mysql用户名 $dbpass = 'xyyh'; //你的mysql密码 $dbname = 'isafe'; //你的mysql库名 $link=mysql_connect($dbhost,$dbuser,$dbpass); mysql_select_db($dbname);$res=mysql_query("SELECT * FROM `wp_download_monitor_files` order by id");while($row=mysql_fetch_array($res)){//echo $row["title"]."<br>";//echo $row["file_description"]."<br>";//echo $row["filename"]."<br>";}//$row=mysql_fetch_array($res);//echo $row["password"];mysql_close();?><div><?php echo $row["title"];?></div></body></html>这个是哪错了,为什么没有输出我要的标题
<html><head></head><body><?php$dbhost = 'localhost'; $dbuser = 'root'; //你的mysql用户名 $dbpass = 'xyyh'; //你的mysql密码 $dbname = 'isafe'; //你的mysql库名 $link=mysql_connect($dbhost,$dbuser,$dbpass);mysql_select_db($dbname,$link);$res=mysql_query("SELECT * FROM `wp_download_monitor_files` order by id");$resa=mysql_query($res);$resaa=mysql_fetch_assoc($resa);echo $resaa["title"];echo"<br>";echo $resaa["file_description"];echo"<br>";echo $resaa["filename"];echo"<br>";echo $resaa["password"];?><div><?php echo $ress["title"];?></div></body></html>这回肯定行了~自己试试吧