Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

PHP with MS SQL SERVER CONNECTIONS Expand / Collapse
Author
Message
Posted Friday, March 13, 2009 10:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 13, 2009 8:08 PM
Points: 5, Visits: 3
Hi there.. I have a project in my school, and i'm gonna create a database driven website. I will use PHP 5.2 and MS SQL SERVER 2000. Can someone help me for a step by step tutorial for connecting php to MS SQL SERVER? and for example, my server is on a different computer, how can i link my page to connect to the MS SQL SERVER? Your reply is highly appreciated.. Thanks..
Post #675408
Posted Friday, March 13, 2009 12:07 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 6:30 PM
Points: 20,900, Visits: 32,939
Since this is a school project, it is best if you do your initial research first. As you find the various answers to your initial questions and need clarification or assistance with a specific problem, then come back and ask your question.




Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #675483
Posted Friday, March 13, 2009 2:37 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 11:08 AM
Points: 31,371, Visits: 15,839
You need a driver from PHP for reaching SQL Server. This should be found in PHP documentation.

For the connection string, you'll need the server name and then user/password that allows you to connect to SQL Server. The SQL Server DBA will need to create that for you. If it's you, then read about "Creating logins" in the SQL Server documentation.

It's not that we don't want to help, but we don't want to do the work for you. You should put forth the effort to attempt something. If it doesn't work, let us know what you did and we'll try to clue you in as to what might be wrong.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #675590
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse