Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize simple message Board by php

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to achieve a simple message board php, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

Php to achieve a simple message board methods: 1, create two tables in the database; 2, write send pages and message pages; 3, through session to achieve user login; 4, create logout login page.

This article operating environment: Windows7 system, PHP7.4 version, Dell G3 computer.

PHP+MySql implements a simple message board:

/ / well, I learned from the book. I didn't write the code by myself, but I can understand it. I have time to write a better-looking roar. I spent a day without proficiency.

Message board is the basis of contact with WEB development, to write a message board needs to know some of the front-end basic tags, have an understanding of the database will be basic SQL language, PHP basic knowledge, the front part of the foundation + database foundation + PHP foundation = > message board.

The interface is really eating lotus root.

First build a database, there are two tables in the database, one deposit account password, one save message information

/ / create a database with two tables Admin and Messagecreate database gbook;// create an Admin table and record the user name and password create table admin (username varchar (20) not null, userpass varchar (20) not null)

First of all, realize the part of the user's message. This is the first step. If there is no message, the index page will be empty.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report