Skip to content

A PHP project that provides the ability to connect and query a MSSQL Server by abstracting away the php_mssql or sqlsrv extensions.

License

Notifications You must be signed in to change notification settings

Romayne/MSSQL-Server-Connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSSQL Server Connector

This project provides the ability to connect to a SQL Server instance and also provides a Data abstraction class that determines if the php_mssql or sqlsrv extensions are to be used.

How To Use

Edit the \application\configs\application.php to match your SQL Server's credentials, if using SQL Server Authentication. However if using Windows Authentication, simply change the server name and database name. To view any database's tables you can navigate to the index.php file with a query string that matches a valid database name on your SQL Server instance. E.g. index.php?database=MyDatabaseName

The Data class has functions for insert, select, update, and query (used for manually doing any of the CRUD operations).

Known Issues

This code does not escape characters when running queries against the SQL Server. Therefore any query passed to the Data class should be escaped before processing any statements.

Contact

Contact directly at info@calgarywebdev.com.

About

A PHP project that provides the ability to connect and query a MSSQL Server by abstracting away the php_mssql or sqlsrv extensions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages