[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!