Temporary Internet Files MySQL-based forum (1)

Source: Internet
Author: User
###############################################
This article is original, if quoted, please indicate the author's information.
Author: Cool Crazy
Email:edincur@yeah.net
Http://safebase.yeah.net
###############################################
# # adduser.php ################################
###############################################
Require ("func.php");
if (empty ($name) or empty ($pwd 1)) {
Show_error (2);
$founderr = 1;
}
if (Is_user_exits ($name)) {
Show_error (3);
$founderr = 1;
}
if ($pwd 1<> $pwd 2) {
Show_error (5);
$founderr = 1;
}
if (strlen ($name) >16 or strlen ($pwd 1) >16 or strlen ($QM) >255) {
Show_error (6);
$founderr = 1;
}
$password = $pwd 1;
if (! $founderr) {
AddUser ();
echo "Success!";
}
?>
######################
# # admin.php ########
######################
Require "func.php";
if (Adminok ()) {
?>


<title>Management</title>




Please select a layout to operate






















$sql = "SELECT * from Boardinfo", $sql _result=mysql_query ($sql); while ($sql _row=mysql_fetch_ Array ($sql _result)) {?> }?> !--? php "!--? php
chinesename name
">!--? php echo $sql _row[chinesename]; ?--> !--? php echo $sql _row[name];?--"





if (Isset ($board)) {
$sql = "SELECT * from Boardinfo where name= ' $board '";
$sql _result=mysql_query ($sql);
$sql _row=mysql_fetch_array ($sql _result);
$name = $sql _row[name];
$chinesename = $sql _row[chinesename];
?>




























}
?>



}
else {
Show_error (1);
}
?>

The above describes the temporary Internet files MySQL-based forum (1), including the content of the temporary Internet files, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.