×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - How to connect to MS SQL Server with PHP and execute sql queries?


PHP - How to connect to MS SQL Server with PHP and execute sql queries?

The FreeTDS library provides rich functionality for working with MS SQL Server databases. 
This library makes the work with MS SQL Server databases such easier as with every MySQL database.

<?php
---
$num= mssql_connect($sqlserver , $sqluser , $sqlpass );
echo ("ConnectID: $numero<br>n");
...
$result=mssql_query('select * from table',$num );
...
mssql_close($num);
---
?>

The FreeTDS could be downloaded from this address:  http://www.freetds.org/

Category: PHP

 
<< Go back