不够详细 学习中
收藏了 看着是不错。就是不够详细。小白求图有真相。 好东西,谢谢楼主,希望咯业主继续更新兽血的网站 改了 外网还是 连不上 服务器 内网可以用。外网改了。线路开不了呀一直-1 这个网站怎么才能连接到数据库注册账号呢,关键是如何能注册账号一点注册就弹出网页<?php
session_start();
include_once("./Config/Config.php");
if(!$isREG) die("未开放注册!");
if($_POST){
include_once("./Class/function_common.php");
$illegal=illegalsubmit();
$POST=Addslashess($_POST);
include_once("./Class/mysql_new_class.php");
$connobj=new mysql_class($SQLhost,$SQLuser,$SQLPWD,$DATABASE);
$sql="select name from account where name='$POST'";
$accountid=$connobj->queryone($sql);
$realname ='$POST';
if($accountid) die("<script>alert('已存在该用户名');history.back();</script>");
$pwd=md5($POST['login_password']);
$sql="INSERT INTOaccount (name,password,email,is_adult) VALUES ('$POST','$pwd','$POST','1')";
$id=$connobj->querysql($sql);
if($id)
{
$result =mysql_query("select id from account where name='$POST'");
$newid=mysql_result($result, 0);
mysql_select_db("acc_db") or die(mysql_error());
mysql_query("set names 'GBK'");
mysql_query("INSERT INTO sx_vas_table (Account_ID,Server_Name,VAS_Point) VALUES ($newid,'一线','10000')");
die("<script>alert('注册成功!已免费赠送给您10000点券');top.location='/';</script>");
}else{
die("<script>alert('注册失败!');history.back();</script>");
}
}
?>
页:
1
[2]