The younger brother was a beginner in PHP and compiled a message board program. He felt good about himself, so he put his face up. please correct me. The source program is as follows:
// File name: guest. php
// Settings
$ Guestfile = "guest"; // record the text file of the message
$ Home = "index.html"; // return to the home page
$ Imagedir = "image"; // image f
asp+ version of the simple Message board production (i)
/*
Tofu production, are fine
Http://www.asp888.net Tofu Technology Station
If reproduced, please retain the copyright information
*/
Objective:
As the saying goes, it is better to write a book than to look at the thousand times, indeed, a lot of purely theoretical things, see more, just have a simple understanding, in fact, in the process of specific p
Data operation and paging used by phpfans message board
The code is as follows:
Class mysql {Function connect ($ dbhost, $ dbuser, $ dbpw, $ dbname = '', $ dbcharset = ''){If (! @ Mysql_connect ($ dbhost, $ dbuser, $ dbpw )){$ This-> show ('Can not connect to MySQL server ');}If ($ dbname ){$ This-> select_db ($ dbname );}If ($ this-> version ()> '4. 1 '){If ($ dbcharset ){$ This-> query ("set names '". $
How is the database designed for the message board in the QQ space? I don't know the database design of the QQ space? Can any friend receive an unlimited number of replies?
Reply to discussion (solution)
Reply ID reply_id,Post ID note_id,Parent ID parent_id of the reply ID Not afraid of buildings in the building, as long as the ownership is marked clear
The adjacent list and the pre-order traver
Little Brother Beginner PHP, made up a message board program, I feel good, so thick shameless put up, please big Brother correct me. The source program is as follows:
FileName: guest.php
Settings section
$guestfile = "Guest";//Record message text file
$home = "index.html";//home page returned
$imagedir = "image"; Directory of image files
$backimage = $imagedir. "
Ask for advice. I have just started to learn php and write code as a message board for php, who can help me see why there are no "reply" or "delete" options on the written page ???
Session_start ();
$ Lydb = new LyDB ();
If (isset ($ _ POST ["type"]) {
If ($ _ POST ["type"] = "insert "){
If (Authority: check_insert () = true ){
$ Lydb-> insert ($ _ POST ["nickname"], "style/avatar /". $ _ POST
If there are too long messages in the message board, the page will be very long. Do you think it is uncomfortable for those long message boards? Every time you have to pick up the scroll bars many times.
If only the title appears at the beginning, you can click the title to see the content below (note that it is not a pop-up window). Is this good!
Next, let's tak
If there are too long messages in the message board with the pull-down function, the page will be very long. do you think it is uncomfortable for those long message boards, each time, the scroll bar is highlighted many times.
If only the title appears at the beginning, you can click the title to see the content below (note that it is not a pop-up window). Is thi
This article to you to share the content is the PHP development message board, delete, change, check operation, has a certain reference value, the need for friends can refer to
PHP Learning, to open a message book as PHP's entry information is still good.
Project structure:
Add Page: Description: Here only focus on the operation, the interface of the artist did
Php develops the CRUD (add, delete, modify, and query) operation on the message board. Project structure: add page: Note: only focus on operations here, and there is no time for the interface artist. I hope you can understand it ...... list page: modify page: SQL required by the project:
Project structure:
Add Page: Note: only focus on operations, and there is no time for the interface artist. I hope you
When the administrator of the message after a reply, you can no longer edit, do not know why the current bug, and in the subsequent version there is no solution, here I would like to explain how to solve this bug, resulting in a reply can not be edited after the reason is because, after the first reply, there are single quotes, So when the second reply is not a single quotation mark filtering, that is, in the original
Create an oracle data table.Create table guestbook (Lw_title varchar2 (100) not null, -- Message SubjectLw_author varchar2 (20) not null, -- the online name pkAuthor_http varchar2 (40), -- home addressAuthor_email varchar2 (40) not null, -- email pkExpression varchar2 (2) not null, -- expressionLw_time varchar2 (14) not null, -- Post Response TimeAnswer_num number (3) not null, -- number of responsesClick_num number (4) not null, -- number of clicksAu
If there are too long messages in the message board, the page will be very long. Do you think it is uncomfortable for those long message boards? Every time you have to pick up the scroll bars many times.If only the title appears at the beginning, you can click the title to see the content below (note that it is not a pop-up window). Is this good!Next, let's take
1. Create a folder named "Msgboard" in the root directory of your PHP.
Create a "msglist.php" file under "Msgboard"
Data table structure you can directly import
The code is as follows
Copy Code
CREATE TABLE ' Msgboard ' (' ID ' int (a) not NULL auto_increment,' username ' varchar (m) CHARACTER SET latin1 not NULL,' Sex ' tinyint (1) Not NULL DEFAULT ' 1 ',' msg ' text CHARACTER SET latin1 not NULL,PRIMARY KEY (' id ')) Engine=myisam auto_increment=1 DEFAULT Chars
XML (extensible Markup Language) is a kind of markup language based on text format, which pays attention to the description of data structure and data meaning, realizes the separation of content and display style, and is not platform independent. Because XML pays attention to the description of the content of the data, so it is very meaningful to retrieve the data, we will not retrieve the information that is not relevant to our request again like HTML. On the other hand, XML file is the carrier
This paper describes the method of message board based on thinkphp framework. Share to everyone for your reference, as follows:
Struggle for a day, finally thinkphp Little Deng message version of the concept version came out
In fact, really thinkphp development speed, as an internet "move Brick", engaged in this pure code farming is understandable.
The code impl
T_user User Login Data SheetUser Login InterfaceJSP DevelopmentSubmit to servlet processing via POST requestServlet handles processing of connected databasesLogin successful client jump RequestDispatcher to main.jspThe error message is not successfully returned, and is output with an El expressionMAIN.JSP Display message ContentUsing Jstl's SQL Tag LibraryAdding information addmsg.jsp sending and processing
This message board is written in ASP and must be supported by the FSO component. Its biggest feature is its ease of use. They use a single response file (content.txt, generated after the first message) to save the message, the program itself (msgboard. ASP, do not modify the file name at Will) There is only one file, y
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.