As you know, the importance of the database to the network. Because of the complexity of CGI, now ASP and Php+mysql have become the mainstream. Almost all of the personal pages have to use the message book, but the application of the message book is very unstable. This has brought a lot of inconvenience to online communication. Want to have their own message book more and more friends.
However, the free profile support for ASP and PHP is very small. I now recommend the Move Station Guide, (http://www.knowsky.com) support PHP. This gives you the foundation to have your own message book. Now, I will use a text message This example to tell the simple usage of PHP.
First, we first determine, the message of a few processes: Write messages, send, view. (search) and so on. And for the owner, the management of the message book is indispensable. So we might as well locate 6 PHP files and 1 text files. 6 php files are: guest.php manage.php reply.php sys.php del.php edit.php,1 text files are: guest.txt
First look at the content of guest.php, you can certainly directly put the following content in your PHP page, please respect the author's work, thank you.
----------------------
guest.php:
Require ("sys.php");
if ($B 1)
{
if ($message = = "" or $name = = "")
{
$errorm = "something went wrong!!! Name and message contents must be filled in ";
}
Else
{
#写入数据
$space = "";
$time = Date (y year m D Day h i min);
$ip = $REMOTE _addr;
$name =encode ($name);
$homepage =encode ($homepage);
$from =encode ($from);
$email =encode ($email);
$message =stripslashes ($message);
$message =htmlspecialchars ($message);
$message =check_strlen_long ($message);
$message =nl2br ($message);
$guestcontent = "Message content:
http://www.bkjia.com/phpjc/478795.html www.bkjia.com true Span id= "Isbasedonurl" itemprop= "Isbasedonurl" >http://www.bkjia.com/phpjc/478795.html techarticle you know, the importance of the database to the network. Because of the complexity of CGI, Now the ASP and the Php+mysql have become the mainstream. Almost all of the personal pages have to use the message book, but the application of the message ...
|