This article provides PHP beginners with an article to share the entire process from the creation of the database to the final reading and writing of the message board with friends. If you need to know more, you can refer to it.
Write message list file
Create a new file list.php and enter the following code:
The code is as follows
Copy code
<🎜>include ("conn.php");<🎜>
<🎜>?>
<🎜>$sql="select * from message ";<🎜>
<🎜>$query=mysql_query($sql);<🎜>
<🎜>while($row=mysql_fetch_array($query)){ ?>
Title: User: td>
Post content:
Note, This is just an introductory PHP tutorial. If you want to use it on the Internet, please do some security and SQL injection filtering, otherwise it will be very unsafe.
http://www.bkjia.com/PHPjc/628885.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/628885.htmlTechArticleThis article provides PHP beginners with an article to share the entire process from the creation of the database to the final reading and writing of the message board. To all my friends, please refer to it if you need to know more. Create a data table...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn