Reputation: 961
I was having problems saving specific data using regular mssql_query as described here: How to correctly sanitize mssql query that stores emails
As you can see, some people recommended sqlsrv driver however it's not available for linux. What would be the best way to use mssql on linux then?
Upvotes: 0
Views: 3313
Reputation: 6240
As Marc B said, use PDO. You'll also want to use the FreeTDS driver. You'll need to: sudo apt-get install tdsodbc unixodbc php5-odbc
.
You can see further configuration in this answer.
Upvotes: 1
Reputation: 4078
At present, Microsoft provides support for Linux Red Hat
distribution Driver only. And it should be on 64 bit OS. http://www.microsoft.com/en-us/download/details.aspx?id=28160
And also its not a OpenSource application, its very difficult get support on Enterprise edition too. I better prefer to go on with MYSQL Database
Upvotes: 1