Let's see what is wrong with this code.
My activated members
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 running result 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 execute your code as php
You can right-click the browser and check the source code to verify this.
You didn't execute your code as php
You can right-click the browser and check the source code to verify this.
This is the nested PHP in THML. how can I modify it?
While the first td in it does not use. connection, so it is interpreted as a string output.