$conn =mysql_connect ("hostname", "username", "PassWord"); $db =mysql_select_db ("dbname", $conn); $numcolumns =8;//The number of records displayed per page
$query = "Select *from Guestbook"; $result =mysql_query ($query); $allnums =mysql_num_rows ($result);//calculation of all records $numpage =ceil ($allnums/$numcolumns);//Guestbook Total $numpage pages
$message = "Please wait ...." Look at all the messages "; } else {$message = "Sorry, only the owner can reply!" "; }
Echo $message; The Empire is wonderful because of you.
If the browser is not responding for a long time, please click here for the connection
Processing message information:
$conn =mysql_connect ("hostname", "username", "password"); $db =mysql_select_db ("dbname", $conn); $time =date ("y-m-d-h:i:s"); $ip = $REMOTE _addr; $query = "Select *from Guestbook"; $result =mysql_query ($query); $id =mysql_num_rows ($result); $id + +; $query = "INSERT into guestbook values (' $username ', ' $city ', ' $email ', ' $homepage ', ' $note ', ' $ip ', ' $time ', $id)"; $result =mysql_query ($query);
Note: NO3 Empire Guestbook
Function: Can realize the owner of the reply, the owner certification
Features: simple structure, expandable function
Cons: Slow speed
This guestbook can see the running situation in Http://phpempire.net, if you are a bit dizzy for some of the process of this guestbook send me email!
"The copyright of this article is owned by the author and house Orso near net, if need to reprint, please specify the author and source"
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.