To help you look at this code, which is wrong.

Source: Internet
Author: User















$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 " "; }?>
I have opened a member
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 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

  • Related Article

    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.