About the implementation of using php message board function

不言
Release: 2023-04-01 14:54:02
Original
1566 people have browsed it

This article mainly introduces the case of php to implement message board function and session control in detail. It has certain reference value. Interested friends can refer to it.

The examples in this article are shared with everyone. The specific code of the php message board function is for your reference. The specific content is as follows

Three tables used in the database

##1. Login interface (denglu.php login.php)

##1.denglu.php

     

开发部内部留言板

用户名:

口令:

Copy after login

2.login.php

query($sql); if(count($arr)) { if($arr[0][0] == $PassWord && !empty($PassWord)) { //存储用户名 $_SESSION["UserName"] = $UserName; header("location:main.php"); } } else { header("location:denglu.php"); }
Copy after login

2. Main interface ( main.php tuichu.php)

1.main.php

    无标题文档 

发布信息 退出系统



留言信息:

query($sql); foreach($arr as $v) { echo ""; } ?>
发送人 发送时间 接收人 信息内容
{$v[1]} {$v[3]} {$v[2]} {$v[4]}
Copy after login

2 .tuichu.php


        
Copy after login

##3. Send page (fabu.php fabuchuli.php)

1.fabu.php

    无标题文档 

查看信息 退出系统

信息发送:

接收人:

信息内容:

Copy after login

2.fabuchuli.php

query($sql,0); header("location:fabu.php");
Copy after login

The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

Use PHP to implement the payment function of Alipay on the mobile APP


About native php to implement excel file reading How to write


The above is the detailed content of About the implementation of using php message board function. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!