主题:求助~~~ 高手帮忙~~
<?
require("lib.inc");
?>
<?
if (!isset($name));
{
$title="用户注册页面";
$bgcolor="#ffff88";
showhtml($title,$bgcolor);
require("register.inc");
showhtmlfooter();
}
else if (!formvali()) ////调试提示这里错误~~~
showmessage($msg);
else
{
if (!connect_mysql())
exit();
else
{
$query="insert into user values('$name',PASSWORD('$passwd'),'$centi_type','$centi_code','$sex','$birth_year','$birth_mon','$birth_day','$pass_quest','$pass_answer','$email','$homepage')";
$res=mysql_query($query,$link);
$err=mysql_error();
if ($err)
{
$msg="发生错误,请通知<a href=mailto:doukango@163.com>站长</a>";
}
else
{
$msg="祝贺您,您的数据已经成功写入数据库!";
$msg.="<br>点<a href='login.php'>这里</a>进入登陆界面!";
}
showmessage($msg);
}
}
?>
请大家帮忙看看
require("lib.inc");
?>
<?
if (!isset($name));
{
$title="用户注册页面";
$bgcolor="#ffff88";
showhtml($title,$bgcolor);
require("register.inc");
showhtmlfooter();
}
else if (!formvali()) ////调试提示这里错误~~~
showmessage($msg);
else
{
if (!connect_mysql())
exit();
else
{
$query="insert into user values('$name',PASSWORD('$passwd'),'$centi_type','$centi_code','$sex','$birth_year','$birth_mon','$birth_day','$pass_quest','$pass_answer','$email','$homepage')";
$res=mysql_query($query,$link);
$err=mysql_error();
if ($err)
{
$msg="发生错误,请通知<a href=mailto:doukango@163.com>站长</a>";
}
else
{
$msg="祝贺您,您的数据已经成功写入数据库!";
$msg.="<br>点<a href='login.php'>这里</a>进入登陆界面!";
}
showmessage($msg);
}
}
?>
请大家帮忙看看