Welcome Guest, Not a member yet? Register   Sign In
MS SQL does not work
#6

[eluser]Michael Wales[/eluser]
Create a new PHP file with the following code:

Code:
<?php

mssql_connect('sql1', 'sa', '<password>') or die('Could not connect to database.');
mssql_select_db('lin2admin') or die('Could not select database.');
$r = mssql_query('SELECT SERVERPROPERTY(\'productversion\') AS version');

while ($line = mssql_fetch_row($r)) {
  print $line[0] . ', ' . $line[1];
}

?&gt;

Let's make sure PHP can connect to MSSQL before blaming CI.


Messages In This Thread
MS SQL does not work - by El Forum - 06-08-2008, 02:24 AM
MS SQL does not work - by El Forum - 06-08-2008, 02:27 AM
MS SQL does not work - by El Forum - 06-08-2008, 02:38 AM
MS SQL does not work - by El Forum - 06-08-2008, 02:44 AM
MS SQL does not work - by El Forum - 06-08-2008, 02:55 AM
MS SQL does not work - by El Forum - 06-08-2008, 03:08 AM
MS SQL does not work - by El Forum - 06-08-2008, 03:27 AM
MS SQL does not work - by El Forum - 06-08-2008, 03:46 AM
MS SQL does not work - by El Forum - 05-08-2012, 07:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB