search

Home  >  Q&A  >  body text

Database Connectivity

I wrote it according to your code, but I got an error when accessing it.

Isn’t it necessary to fill in the database connection account and password here?

Mike (指南帮科技~博帮企服)Mike (指南帮科技~博帮企服)2044 days ago1325

reply all(2)I'll reply

  • 王林

    王林2019-08-21 17:48:55

    mysqli_connect($localhost,$username,$password,$dbname,$port);

    This is also possible

    reply
    0
  • angryTom

    angryTom2019-07-15 11:49:22

    You can share your error report and take a look. It may also be that you forgot to set the password when creating the database connection in the database

    reply
    0
  • Cancelreply