I have used the following php code to show the number of rows from sql table but I am getting below error message.
Fatal error: Call to undefined function mssql_query()
in D:\wamp\www\thereport24\gp.php
on line 22
my code:
$conn = odbc_connect('gpcon','','');
if ($conn)
{
$query= "select * from SubscriberServices where SubscriptionGroupID like 'ms_gp_tr24bn_3333'";
$results = mssql_query($query);
$rows = mssql_fetch_array($results);
echo $rows[0];
mssql_close($con);
}
extension=php_mssql.dllis uncommented in your php.ini and mssql installed on your machinephp_info()and see if the right extensions are indeed loaded?