search

Home  >  Q&A  >  body text

An error is reported, hoping that 1 is a string

mysql_set_charset($conn,'utf8');   //设置字符集

$sql = "insert into user(username,password,createtime,createip) values (".$username."','".$password."','".$time."','".$ip.")";

$result = mysql_query($conn, $sql);

十四十四2124 days ago1170

reply all(3)I'll reply

  • 明日边缘

    明日边缘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!

    reply
    0
  • 韦小宝

    韦小宝2019-01-21 10:30:46

    Please print and see if all subsequent changes have been fully parsed

    reply
    0
  • Cancelreply