Page 1 of 1
sql server connection ???!!!
Posted: Tue Feb 12, 2013 8:29 am
by minos_mks
how can i connect my php code to sql server DB in my network ???!!!
Re: sql server connection ???!!!
Posted: Tue Feb 12, 2013 10:44 am
by Christopher
Have you read this page carefully, and all the comment at the bottom?
http://www.php.net/manual/en/function.mssql-connect.php
If you have, then show us the code you tried (do not post real usernames or passwords).
Re: sql server connection ???!!!
Posted: Tue Feb 12, 2013 4:33 pm
by requinix
Know that depending on your setup (PHP version, SQL Server version, platform, stuff like that) you may need to use the SQLSRV extension, available for download from Microsoft. It's basically the same style of coding as you'd do using mssql but with different functions.
Re: sql server connection ???!!!
Posted: Tue Feb 12, 2013 9:31 pm
by minos_mks
thank you all , but i am kind of confused cause my Db admin give me the server name , and told me that the user name and pass is the same as my network pass and she doesn't know any thing about php and all what she is talking about is the odbc. and allot of comment in that link of (mssql-connect) so i need to know the steps ???!!! please help if you can.....
Re: sql server connection ???!!!
Posted: Thu Feb 21, 2013 7:58 pm
by mecha_godzilla
Hi,
For the benefit of anyone else interested in this question, the following page has some useful examples and advice for anyone wanting to use ODBC with PHP:
http://www.ibm.com/developerworks/opens ... index.html
HTH,
Mecha Godzilla
Re: sql server connection ???!!!
Posted: Fri Feb 22, 2013 8:16 pm
by minos_mks
thanks mecha it looks like this link is very useful for me. i will read it and tray it Thanks again