帮忙看下这段代码哪错了

WBOY
Release: 2016-06-23 13:33:13
Original
794 people have browsed it


 



$uname = iconv("UTF-8","gb2312//IGNORE",$uname);
$conn = mysql_connect("localhost","root","qqaazz");
mysql_select_db("2",$conn); 
mysql_query("SET NAMES GBK"); 
$sql="select * from  yang_user where fullname = "qqaazz"";
$result = mysql_query($sql,$conn); 
while($row=mysql_fetch_assoc($result))
{
echo"";
}
 ?>
我开通的会员
UID 会员账号 用户类型 Email 注册时间
"$row["uid"]" ".$row["uname"]." ".$row["utype|getUtypeName"]." ".$row["email"]." ".$row["regtime|date='Y-m-d H:i:s'"]."




这段代码哪错了,运行结果表格里显示的是源代码:"$row["uid"]" ".$row["uname"]." ".$row["utype|getUtypeName"]." ".$row["email"]." ".$row["regtime|date='Y-m-d H:i:s'"]." 


回复讨论(解决方案)

你没有把你的代码当做 php 执行
你可在浏览器 右键 -- 查看源代码 来证实这一点

你没有把你的代码当做 php 执行
你可在浏览器 右键 -- 查看源代码 来证实这一点


这个是THML中嵌套的PHP,那要怎么修改?

while里面第一个td没有用 . 连接,所以解释为字符串输出了

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template