• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get output from Stored Procedure

#1
Hello How are you
I want to get a value as output from Stored Procedure in Microsoft SQL Server but I can't

my Stored Procedure code:

Code:
ALTER PROCEDURE [dbo].[count_message]
        @username smallint
    
    
AS    SET NOCOUNT ON;

     
 

return  isnull((select count(*) from dbo.sd_message where ms_user=1 or [email protected]),0)


my PHP/Codeingiter Code:

PHP Code:
$result $this->db->query("update_message '2300'");
echo 
'resutl:'.$result
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.