So, I'm writing a message board with PHP, submitting it to PHP with a form and writing it to the database with the account number and title and content. Then I want to extract it and show it to the page (this is also written in PHP). But I don't know how to mention power and traverse. I think one way to do this is: $user =mysql_fetch_array (mysql_query ("Select username from Message"), Mysql_num); $title =mysql_fetch_array (mysql_query ("Select title from Message"), Mysql_num); $content =mysql_fetch_array (mysql_query ("Select content from Message"), Mysql_num); The three arrays are then traversed. This allows you to display the page in the format you like. But I found only one record was extracted when I extracted the database. What should I write? Ask the Great God!!!
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.