[eluser]polaris1927[/eluser]
I had configured the database class in the autoload.php file as follows:
Code:
$autoload['libraries'] = array('database');
Removing the class from the autoload.php file and attempting to connect to the database from the controller using:
Code:
function index()
{
$conn = mssql_connect('srv03', 'pbx', 'pbx');
mssql_select_db('BusinessDirectory', $conn);
$r = mssql_query('Select * from Business_names', $conn);
while ( $row = mssql_fetch_array ( $r ) )
{
echo $row['name'] . '<br>';
}
}
worked.
So, there seems to be a problem with the autoload.php and the database library?