Class members Guestbook Management: class/notebook/delnote.php
Session_Start ();
if (!session_is_registered ("Superlogin"))//check whether to register
{
echo "Please re-login the administrator
";
Exit
}
Include (".. /config.php ");
if ($del ==1) {//
Info.inc.php mainly make some judgments and information processing
function Update ($REGINFO)
{
Switch ($reginfo [4])
{
Case ($reginfo [4]==1):
$reginfo [4]= "male";
Break
Default
$reginfo [4]= "female";
Break
}
Switch ($reginfo [11])
{
Case
reguse.php User Registration and Login page
if ($action ==dl&& $uname)
{
$uinfo = $uname. "|". $upass;
Setcookie ("Flyfoxnet", $uinfo, Time () +3600);
}
?>
User Registration
Include "linkfox.inc.php";
Include "info.inc.php";
Three first page press release to make your update easier (bottom)
-----The previous lecture, we have realized the basic function of the homepage press release. In this talk, we give it the building blocks to make it more powerful. (a good software,
In fact, the time to write this code is only nearly three days, not before the detailed thinking and planning (can say a little plan not) that day think of a forum to try, and then do it, and I was only contact with nearly one months of PHP, has not
The main interface, which is the page that displays the list of topics.
foxbbs.php function: Show the theme of the forum
Fox Network Forum
Include "linkfox.inc.php";
Include "info.inc.php";
?>
$tem = $HTTP
Displays the topic content page.
Fox Network Forum
Include "linkfox.inc.php";
Include "info.inc.php";
?>
$query = "SELECT * from Foxbbs where id= '". $id. "'"; This ID is transmitted from the previous page, foxbbs.php.
$req
PHP Example Anatomy: Counter
Author: Sucre_tiger
This counter with text count, no database, can achieve the following functions:
Count multiple pages with a single text file reduce server I/O occupancy in files that need to be recorded, only a few
POST. PHP publishes the subject page, and the posted information is submitted to okey.php for processing.
Forum post
Include "linkfox.inc.php";
Include "info.inc.php";
?>
$tem = $HTTP _cookie_vars[flyfoxnet]; Take cookie
config.php file
Your user name and password, as well as the database name, and the table name, are defined here once!!!
Because of the fear that the user name and password are seen by others through the browser, so the PHP extension, so that
Using PHP completely random design, each refresh has a different lucky number, try, made a fortune don't forget Neo Oh ~ ~ ~
for ($n =1; $n echo "First". $n. " Note ";
$string = "";//Initialize string
for ($i =1; $i Mt_srand (Double) microtime () *1
6. Bbsd and cq66 server-side Retrofit
Bbsd, the module about the user should be better changed, as long as it will be written. The operation of the passwd file is changed to
You can manipulate the member functions of the Usermanage class of the
Years ago I began to engage in three-dimensional animation learning, after learning PHP, found that can be dynamically generated by PHP VRML documents, a bit similar to the generator dynamic generation of flash mode.
Because of the broad and
10, member information display file SHOW.PHP3
if ($login) {
Require ("common.php3");
if (!isset ($id)) error ("How do I not fill in the user ID?") ");
else{
$id =chop ($id);
$DBM =dbmopen ("Class", "R");
if (!dbmexists ($DBM, $id)) error ("Without
This yearbook originally for our class, because the server does not have MySQL support, chose dbm
There is no dbm program in China, and there is hardly any foreign
Spent an evening in the case of hardly any reference written out
Now it's out.
is a
1. $row = Mysql_fetch_row ($result);
Returns an array of rules $row, $row [0] is the first element, $row [1] is the second element, and so on ...
Mysql_num_fields ($result) returns the number of elements of the result.
2. $row = Mysql_fetch_array ($
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service