I want to call a stored procedure in my Codeigniter website, but I can't, I tried many solution but I couldn't. I use Microsoft SQL Server 2012 and Codeigniter 3.1 and sqlsrv dirver and iis 8.5 and php 5.6
my stored procedure code:
alter PROCEDURE [dbo].[count_message]
@username smallint
AS SET NOCOUNT ON;
return isnull((select count(*) from dbo.message where ms_user=1 or ms_user=@username),0)