[PHP beginner question] I want to query the output of two tables on the same page

Source: Internet
Author: User
[PHP beginner's question] I want to query the output of two tables on the same page, for example, I am a newbie. now I want to create a blog. I have encountered a problem because on one page, the Type (blog Type) needs to be output in the left column, and INformational (blog content) needs to be output in the right column. two tables need to be queried and output, but an error is reported after the while clause, and the query is not available. how can this problem be solved?


Reply to discussion (solution)

Release code ..

You can use 112 rows directly

Tag, PHP parsing is not recognized, echo the html text,
Like "while ($ row = mysql_fetch_array ($ result )){
Echo"

  • ". $ Row ['type _ name']."
  • ";
    }"
    This section is the same

    Why are you while? is the code wrong?

    If you write the html language directly into the loop body, an error is returned.

    On the same building

    PHP does not parse tags. if you want to output tags in the script, echo is required"

    "; Enclose the quotation marks; otherwise, you will embed the script into the page as upstairs

    Thank you! you are a newbie. you have made a mistake!

    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.