D
delphifans_hx
Unregistered / Unconfirmed
GUEST, unregistred user!
我在51.net上申请了个主页,最近遇到了一个问题:
member.php:
<?
$Host = "localhost";
$User_Name = "";
//用户名
$Password = "";
//密码
$dbLink =@mysql_connect($Host, $User_Name, $Password);
mysql_select_db("delphifans-hx",$dbLink);//选择数据库
$sql =
"insert into member(userid,password,email,name,address,website,description,company,oicq,remote_ip)
values('$userid','$password','$email','$name','$address','$website','$description',
'$company','$oicq','$REMOTE_ADDR')";
if (mysql_query("$sql"));
print("successful");//显示则成功
print(mysql_error());//出错提示;
print("/n");
print("$sql");//返回sql
?>
返回令我莫名奇妙:
successful No Database Selected insert into member(userid,password,email,name,address,website,description,company,oicq,remote_ip) values('asdffdgfg','asdf','asdf','asdf','asdf','asdf','asdfasdf', 'asdf','asdf','218.75.129.138')
member.php:
<?
$Host = "localhost";
$User_Name = "";
//用户名
$Password = "";
//密码
$dbLink =@mysql_connect($Host, $User_Name, $Password);
mysql_select_db("delphifans-hx",$dbLink);//选择数据库
$sql =
"insert into member(userid,password,email,name,address,website,description,company,oicq,remote_ip)
values('$userid','$password','$email','$name','$address','$website','$description',
'$company','$oicq','$REMOTE_ADDR')";
if (mysql_query("$sql"));
print("successful");//显示则成功
print(mysql_error());//出错提示;
print("/n");
print("$sql");//返回sql
?>
返回令我莫名奇妙:
successful No Database Selected insert into member(userid,password,email,name,address,website,description,company,oicq,remote_ip) values('asdffdgfg','asdf','asdf','asdf','asdf','asdf','asdfasdf', 'asdf','asdf','218.75.129.138')