1
Paranoid 2013-10-05 23:59:52 +08:00
sql ="INSERT INTO `a1`.`user`(username, password) VALUES('$user', '$pass')"; +上=引号试试.
|
2
CalifLove 2013-10-06 00:54:15 +08:00
$sql = "INSERT INTO user (username,password) VALUES (".$user.",".$pass.")";
|
3
faceair 2013-10-06 01:03:38 +08:00 1
加上单引号能避免数据为空时出错
|