Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize simple message Board by php

Shulou Source: shulou.com Published: 2022-06-02 06:28:57 10月02日 Update

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.

Tags: Data database login message board foundation user administration message book page content password time administrator output easy success I want effect date copyright Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei OPPO Reno Shulou Technology MySQL MariaDB