PHP MySQL expects mysqli boolean given

前端 未结 5 930
一向
一向 2021-01-29 07:38

I have a php script that changes a database when the page is requested. Here is the php:



        
5条回答
  •  故里飘歌
    2021-01-29 08:19

    Line 3

    $con=mysqli_connect("server","db","user","password");//establish connection
    

    Change "server" to your host address or maybe "localhost"

    my assumption is your database name = "db" , your user = "user" and user's password = "password"

    if not just change into correct db name, user and password

提交回复
热议问题