hi i'm rizki. can you all help me? please

i have a problem with script php to call procedure using sql server database this is the store procedure in sql server:
[code=mysql]
CREATE Procedure dbo.q_putaka
(
@key varchar(200),
@scope varchar(4) = null

)
As
if @scope ='1'
execute ('select distinct author_name,boo k_id,remark,ava ilability,title from v_pustaka...