php-5.3.3 connection MSSQL failed? Solution Ideas

Source: Internet
Author: User
Tags mssql
php-5.3.3 connection MSSQL failed?
I downloaded php-5.3.3-win32-vc6-x86 (downloaded in http://windows.php.net/download/)
I opened the configuration of the connection MSSQL in the php.ini.
But the download package does not contain php_mssql.dll, only Php_mysql.dll
I re-download the Php_mssql.dll file on the web to load the "\ext" directory
However, restarting Apache warns that the module cannot be found.

$hostname = "10.4.2.5"; That's right
$dbuser = "sa"; That's right
$DBPASSWD = "123456"; That's right
$dbname = "HR"; That's right
$conn = Mssql_connect ($hostname, $dbuser, $dbpasswd) or Die ("Database connection Error! ");
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";
?>
Run time also in error "Fatal Error:call to undefined function mssql_connect ()"

is not php-5.3.3 does not directly contain Php_mssql.dll.

How to achieve connection MSSQL?


------Solution--------------------

------Solution--------------------
Listen to me right now.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.