将PHP连接到SQL Server [英] Connecting PHP to SQL Server

查看:92
本文介绍了将PHP连接到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想将PHP连接到SQL Server。我使用以下代码[php]< ;?

$ connection = mssql_connect($ host,$ username,$ password)或die(无法连接到SQL Server);

?> [/ php]但没有显示任何内容。我不知道连接到sql server有什么要求


寻找你的帮助。

感谢'的

解决方案

connection = mssql_connect(


host,


用户名,

Hi

I want to connect PHP to SQL Server. I use the following code [php]<?
$connection = mssql_connect($host,$username,$password) or die("Couldn''t connect to SQL Server on");
?>[/php]but nothing is displayed. I don''t know what are the requirements for connecting to sql server

looking for ur help.
Thank''s

解决方案

connection = mssql_connect(


host,


username,


这篇关于将PHP连接到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆