Let's see what is wrong with this code.

Source: Internet
Author: User
Let's see what is wrong with this code.














$ 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" ";}?>
My activated members
UID Member account User type Email Registration time
"$ 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.