php warning when logging in website folder by cpanel

前端 未结 1 1857
温柔的废话
温柔的废话 2021-01-27 06:40

I am writing some php script in the cpanel. When I access the website folder (e.g. www.bbbbbb.com/folder/) It give the warning like that.

Warning: mysqli::mysq         


        
相关标签:
1条回答
  • 2021-01-27 07:19

    check your connection string or may be you need to try with port

    $connection = new mysqli("host", "user", "pwd", "db", "3306");
    

    no need to change port 3306 is default why you use die("Error : ".mysql_error()); use mysqli

    0 讨论(0)
提交回复
热议问题