mysql_set_charset($conn,'utf8'); //设置字符集
$sql = "insert into user(username,password,createtime,createip) values (".$username."','".$password."','".$time."','".$ip.")";
$result = mysql_query($conn, $sql);
明日边缘2019-03-01 18:27:25
You can put your sql statement in the mysql client command line and execute it, and you should be able to find the error! I hope this newbie like me can help you!