How to use PHP to connect to sql server

前端 未结 14 2114
醉梦人生
醉梦人生 2020-11-30 11:37

I want to use PHP to connect to sql server database.

I installed xampp 1.7.0(php 5.2) and SQLSRV20. I\'ve added the extensions in php.ini and I get thi

14条回答
  •  醉酒成梦
    2020-11-30 12:06

    Use localhost instead of your IP address.

    e.g,

    $myServer = "localhost";
    

    And also double check your mysql username and password.

提交回复
热议问题