|
楼主 |
发表于 2006-12-2 09:47:21
|
显示全部楼层
我先把处理注册入库的代码贴出来吧
$query = "select tid from ask_member order by tid desc limit 1 ";
$result = mysql_db_query($DataBase, $query);
$r = mysql_fetch_array($result);
$tid=$r[tid]+1;
$ip = $_SERVER["REMOTE_ADDR"];
$dbtime=date("Y-m-d H:i:s");
$query = "INSERT INTO ask_member (tid,username,password,email,truename,sex,jiaoyu,school,study,year,month,prov,city,ip,dtime,score,logintime,phonelook,emaillook,info) VALUES ('$tid','$_POST[username]','$_POST[password]','$_POST[email]','$_POST[truename]','$_POST[sex]','$_POST[jiaoyu]','$_POST[school]','$_POST[study]','$_POST[year]','$_POST[month]','$_POST[TPL_prov]','$_POST[TPL_city]','$ip','$dbtime','200','$dbtime','$_POST[emaillook]','$_POST[emaillook]','')";
上面是我处理注册用户并放入数据库的主要程序,请帮我看一下有没有什么问题. |
|