How PHP calls stored procedures in SQLServer2008

Source: Internet
Author: User
PHP sql Server stored procedure PHP stored procedure

Title, hope to give a simple and clear example code and description.


Reply to discussion (solution)

http://hi.baidu.com/lei_com/item/232d6c56b6877e9709be1732
Look at this line no, there are many such tutorials on the web.

http://hi.baidu.com/lei_com/item/232d6c56b6877e9709be1732
Look at this line no, there are many such tutorials on the web. The following version of this tutorial should be available in PHP5.2, but I use PHP5.3.5, this version can not use the function of MSSQL. such as: Mssql_bind

Mssql_bind ($SP, "@user_name", $user _name,sqlvarchar,false,false,30);   Mssql_bind ($SP, "@password", $password, sqlvarchar,false,false,30);   Mssql_bind ($SP, "@info", $info, sqlvarchar,true,false,30); Add an output parameter for the stored procedure   mssql_execute ($SP);//execute the stored procedure   echo $info;//print out the output parameter values returned from the stored procedure
I changed the Mssql_bind function to Sqlsrv_bind and used it.
  • 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.