Challenge the best guestbook source code (1)_PHP tutorial
Instructions for using the guestbook
Haha, I am very happy. I have been working on the guestbook for a long time and I can finally publish it...
Ah, I hope everyone likes it. It doesn’t matter if you don’t like it, but, There must be a reason why you don't like it, please let me know!!!
Thank you!!!
The goal of this guestbook from the beginning is to ""challenge the best guestbook""!!! Me I think "There is nothing I can't do, I just want to see if it is necessary"!!!
If your suggestion is good, I will definitely fulfill your request. My goal is: "Make a great program Member".
The advantages and disadvantages of this guestbook:
--------------------- ------------------------------------------------
This is probably the most It’s important. Haha!!! There is a certain number of words, which means that regardless of your line breaks, they will be wrapped for you. If you want to post text graphics, there will be a problem.) Most guestbooks now do not implement automatic line breaks, which means that it No matter how many characters you write in a sentence, they will all be displayed on one line. If there is a message without line breaks, the message book will become ugly, and the lines under the window will be very long, destroying the beauty of the leaf surface! !!.
As of today, I have not found a message that can solve these two problems at the same time, which is why I wrote this message.
Including oso forums, too If you don’t believe it, try leaving a message. Write a very long character without a carriage return, and problems will immediately appear on the leaf surface. (I mentioned this problem to oso, but I don’t know if it has been changed!)
I wrote a computer_message($msg); function to solve this problem, you can see the source code in the config.php file.
There is also pagination: you can view it in two ways, One is: displaying messages forward and backward, and the other is: displaying the number of pages.
Moderators can now easily delete and restore through the link below, of course they must enter a password.
Disadvantages:
Of course, I have to be realistic, but the beautification work of the page is not enough. Although it is necessary, due to time constraints, I always feel that it is external. You can drag things first. Of course, anyone with a little knowledge of HTML can easily modify them.
There are also unknown BUGs! Haha!!!
Download point , and samples can be found at http://little.oso.com.cn! ! !
Because the help file is written under Linux, you need to use WordPad to open readme.txt
Don’t use Notepad, otherwise the code will be garbled! ! !
The following are configuration instructions:
-------------------------------- --------------------------------
For the convenience of configuration, the code has been rearranged and now all The parameters that need to be set are all placed in the
config.php file. It should be very simple to configure, and there are detailed instructions in it.
Goal: Complete your guestbook within ten minutes!!!
1: Create a database (the homepage must provide database space)
Generally, there is a front-end of phpMyAdmin open source like oso. It is very simple since creation.
Get it After the name, remember to change $db_name in config.php to this name
2: Create a message table (change $table_name in config.php to the name you gave here later).
The structure is:
key_liuyan int(11) auto_increment primary key, // Mainly built, automatically incremented
nikename varchar(20) null // Nickname
subject varchar(100) null > Date_created varchar (19) // Message time
ip_address varchar (15) // The IP address of the message
Message Mediumtext Null // Message information
Email_Address Varchar (50) null // The message -Mail address
huifu_biaozi int (1) default 0 // Moderator replies
Huifu Mediumtext null OICQ VARCHAR (20) NULL // The OICQ number of the message
can be done with the following SQL !!! (I have passed it, remember to change the yourtable_name to a good note,
Of course not to change it. OK)
create table your_liuyan_table(
key_liuyan int(11) auto_increment primary key,
nikename varchar(20) null,
subject varchar(100) null,
date_created varchar(19) ,
ip_address varchar(15),
message mediumtext null,
email_address varchar(50) null,
zhuye_address varchar(50) null,
huifu_biaozi int(1) default 0,
huifu mediumtext null,
oicq varchar(20) null
)
3: Create a control table: (Also put the name here in $table_name_control of config.php inside)
The structure is as follows:
leibie varchar(20) primary key,
value varchar(20) null
You can also use the following SQL statement:
create table your_control_table(
leibie varchar(20) primary key,
value varchar(20) null
)
Because this is your control table, So you need to add two control records yourself;
The SQL statement is:
Insert and delete password:
insert into your_control_tble(
leibie,
value)
values
(delete,'1332');
Insert reply password:
insert into your_control_tble(
leibie,
value)
values
(huifu,'1332');
Put the password like this is: 123, the user name is empty!
How to calculate the relationship between the password and the inserted value?
It’s like this, your password, such as 123, add the three digits Up, equal to 6, and then multiply 6 times 222 to get the password value!!!
6*222=1332.
Knowing this relationship, of course you can change it to another password.
But the user name must be empty,,,
The principle of simple encryption can be found in the three-digit number on the homepage http://cxg168.126.com.
4: Once everything is done, just upload the files except readme.txt.
If you have any questions, please contact me.
The following is how to contact me (comments returned):
--------------------------------- -----------------------------------------------
?My guestbook: http:/ /little.oso.com.cn
My OICQ: 873221
My e-mail: cxg168@sohu.com
------------- -------------------------------------------------- -----

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to set up keyboard startup on Gigabyte's motherboard. First, if it needs to support keyboard startup, it must be a PS2 keyboard! ! The setting steps are as follows: Step 1: Press Del or F2 to enter the BIOS after booting, and go to the Advanced (Advanced) mode of the BIOS. Ordinary motherboards enter the EZ (Easy) mode of the motherboard by default. You need to press F7 to switch to the Advanced mode. ROG series motherboards enter the BIOS by default. Advanced mode (we use Simplified Chinese to demonstrate) Step 2: Select to - [Advanced] - [Advanced Power Management (APM)] Step 3: Find the option [Wake up by PS2 keyboard] Step 4: This option The default is Disabled. After pulling down, you can see three different setting options, namely press [space bar] to turn on the computer, press group

1. Processor When choosing a computer configuration, the processor is one of the most important components. For playing games like CS, the performance of the processor directly affects the smoothness and response speed of the game. It is recommended to choose Intel Core i5 or i7 series processors because they have powerful multi-core processing capabilities and high frequencies, and can easily cope with the high requirements of CS. 2. Graphics card Graphics card is one of the important factors in game performance. For shooting games such as CS, the performance of the graphics card directly affects the clarity and smoothness of the game screen. It is recommended to choose NVIDIA GeForce GTX series or AMD Radeon RX series graphics cards. They have excellent graphics processing capabilities and high frame rate output, and can provide a better gaming experience. 3. Memory power

Common challenges faced by machine learning algorithms in C++ include memory management, multi-threading, performance optimization, and maintainability. Solutions include using smart pointers, modern threading libraries, SIMD instructions and third-party libraries, as well as following coding style guidelines and using automation tools. Practical cases show how to use the Eigen library to implement linear regression algorithms, effectively manage memory and use high-performance matrix operations.

SPDIFOUT connection line sequence on the motherboard. Recently, I encountered a problem regarding the wiring sequence of the wires. I checked online. Some information says that 1, 2, and 4 correspond to out, +5V, and ground; while other information says that 1, 2, and 4 correspond to out, ground, and +5V. The best way is to check your motherboard manual. If you can't find the manual, you can use a multimeter to measure it. Find the ground first, then you can determine the order of the rest of the wiring. How to connect motherboard VDG wiring When connecting the VDG wiring of the motherboard, you need to plug one end of the VGA cable into the VGA interface of the monitor and the other end into the VGA interface of the computer's graphics card. Please be careful not to plug it into the motherboard's VGA port. Once connected, you can

Can downloads be deleted? In recent years, with the advent of the digital age, more and more digital products and services have appeared in our lives. What follows is that our demand for digital content is increasing day by day. In our daily life and work, we often need to download a variety of files, such as documents, pictures, audios, videos, etc. These downloaded files are usually saved in a folder called "downloads". However, over time we often find that,"

Tomato Novel, this popular novel reading software, not only has rich and diverse novel resources, but also provides exclusive categories so that every reader can easily find their favorite reading material. Whether it's a classic or a popular new work, Tomato Novels can satisfy your reading needs. You can also publish your own updates, share your reading opinions and experiences, and implement social functions. However, many friends do not know how to publish their own updates, so users who want to know more can come and learn more. Just give it a try. How to post updates on Tomato Novels? 1. First click to enter the My Page of Tomato Novel. 2. Then click on the avatar box to enter the personal information page. 3. Then click the edit pattern to publish the dynamic. 4. After filling in the content, select the publish button.

Glodon Software is a software company focusing on the field of building informatization. Its products are widely used in all aspects of architectural design, construction, and operation. Due to the complex functions and large data volume of Glodon software, it requires high computer configuration. This article will elaborate on the computer configuration recommendations of Glodon Software from many aspects to help readers choose a suitable computer configuration processor. Glodon Software requires a large amount of data calculation and processing when performing architectural design, simulation and other operations. Therefore, the requirements for the processor are higher. It is recommended to choose a multi-core, high-frequency processor, such as Intel i7 series or AMD Ryzen series. These processors have strong computing power and multi-thread processing capabilities, and can better meet the needs of Glodon software. Memory Memory is affecting computing

What games can be played with i34150 with 1G independent graphics? Can it play small games such as LoL? GTX750 and GTX750TI are very suitable graphics card choices. If you just play some small games or not play games, it is recommended to use the i34150 integrated graphics card. Generally speaking, the price difference between graphics cards and processors is not very big, so it is important to choose a reasonable combination. If you need 2G of video memory, it is recommended to choose GTX750TI; if you only need 1G of video memory, just choose GTX750. GTX750TI can be seen as an enhanced version of GTX750, with overclocking capabilities. Which graphics card can be paired with i34150 depends on your needs. If you plan to play stand-alone games, it is recommended that you consider changing the graphics card. you can choose
