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...
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]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.