Traversal-a message board question written in PHP

Source: Internet
Author: User
Keywords Traversing the PHP array database
Traversing the PHP array database

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

  • 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.