php-5.3.3 连接 mssql 失败?解决思路
php-5.3.3 连接 mssql 失败?
我下载php-5.3.3-Win32-VC6-x86(是在http://windows.php.net/download/ 下载的)
我在php.ini中把连接mssql的配置都打开.
但下载包中没有包含php_mssql.dll,只有php_mysql.dll
我在网上重新下载php_mssql.dll文件加载 "\ext"目录下
但重启Apache 就提出警告说找不到该模块。
$hostname="10.4.2.5"; //正确
$dbuser="sa"; //正确
$dbpasswd="123456"; //正确
$dbname="HR"; //正确
$conn = mssql_connect($hostname,$dbuser,$dbpasswd) or die("数据库连接错误!");
mssql_select_db($dbname,$conn);
$sql = " select * from Pip_Staff_S where cStaffID ='z797' ";
$rowset=mssql_Query($sql,$conn);
$rowcnt=mssql_num_row($rowset);
echo " Rows ";
//echo $rowset;
echo "Word Hello";
echo " END ";
?>
运行的时候也在错误"Fatal error: Call to undefined function mssql_connect() "
是不是php-5.3.3没有直接包含php_mssql.dll..
怎么才能实现连接mssql?
------解决方案--------------------
------解决方案--------------------
正确听听吧

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
