Fatal error: mysqli_connect()

后端 未结 3 526
庸人自扰
庸人自扰 2021-01-29 05:53

I know there are quite a few forums out there talking about this problem in stackoverflow but none seem helped so....trying to see if anyone else can give me a hand...

I

3条回答
  •  梦如初夏
    2021-01-29 06:36

    1) Make sure that php_mysqli.dll is present in your directory. 2) Does your id auto_increment? If yes, then you dont have to insert it to your table. Check your syntax. Try this:

    mysqli_query($db, "INSERT INTO books(title) VALUES('the nose')") or die(mysqli_error());
    

提交回复
热议问题