Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP and SQL SErver

Status
Not open for further replies.

wolf73

Programmer
Feb 12, 2006
93
CA
Hi,

Has anybody have some sample program where they have PHP to with SQL Server. I always used PHP with MYSQL not SQL Server. I wanted to see how the code look like to connect to SQL Server and then to the the database and run querries etc...

Thanks
 
What will the code look like? Do a global search-and-replace on a script that connects to MySQL, replacing every instance of "mysql_" with "mssql_".

It's the same order of operations:[ol][li]Connect using mssql_connect()[/li][li]Query using mssql_query()[/li][li]Fetch data using mssql_fetch_assoc()[/li][/ol]



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top