I have opened a member
UID |
member account |
User Type |
Email |
Registration Time |
$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 "
"$row [" UID "]" |
". $row [" uname "]." |
". $row [" Utype|getutypename "]." |
". $row [" Email "]." |
". $row [" regtime|date= ' y-m-d h:i:s ' "]." |
"; }?>
This code is wrong, the results table shows the source code: "$row [" UID "]" ". $row [" uname "]." ". $row [" Utype|getutypename "]." ". $row [" Email "]." ". $row [" regtime|date= ' y-m-d h:i:s ' "]."
Reply to discussion (solution)
You didn't do your code as PHP.
You can verify this by right-clicking on the source code in the browser
You didn't do your code as PHP.
You can verify this by right-clicking on the source code in the browser
This is a nested PHP in the THML, how to modify it?
The first TD in while is useless. Connection, so the explanation for the string output is