Yes. I am writing a message board in php, submitting it to php in a form, and writing it to the database with an account, title, and content. Then I want to extract it and display it on the page (this is also written in php ). However, I don't know how to extract and Traverse. I thought of a solution: $ usermysql_fetch_array (mysql_query (& quot; selectusernamefrommessage & quot;), MYSQL_NUM); $ titlemysql_fetch_array (mysql_query (& quot; selectt traverses php array database
Yes. I am writing a message board in php, submitting it to php in a form, and writing it to the database with an account, title, and content.
Then I want to extract it and display it on the page (this is also written in php ). However, I don't know how to extract and Traverse.
I thought of the following method:
$ 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 );
Then traverse the three arrays. In this way, the page will be displayed in your favorite format. However, I found that only one record can be extracted from the database.
What should I do? Thank you !!!