The code below gives me "Warning: Wrong parameter count for mssql_bind() in"

$action="L";
$M_ExhibitionID=$_REQUEST[M_ExhibitionID];
$areaid=1;
$LngCode="el";
$sproc=mssql_init( "sp_php" );
mssql_bind($sproc,"@action",$action,SQLCHAR,false,false);
mssql_bind($sproc,"@M_ExhibitionID",$M_ExhibitionID,SQLINT4,false,false);
mssql_bind($sproc,"@areaid",$areaid,SQLINT4,false,false);
mssql_bind($sproc,"@lang",$LngCode,SQLVARCHAR,false,false);
$GET_EXHIBITS=mssql_bind($sproc);

what is my wrong?

The code below gives me "Warning: Wrong parameter count for mssql_bind() in"

$action="L";
$M_ExhibitionID=$_REQUEST[M_ExhibitionID];
$areaid=1;
$LngCode="el";
$sproc=mssql_init( "sp_php" );
mssql_bind($sproc,"@action",$action,SQLCHAR,false,false);
mssql_bind($sproc,"@M_ExhibitionID",$M_ExhibitionID,SQLINT4,false,false);
mssql_bind($sproc,"@areaid",$areaid,SQLINT4,false,false);
mssql_bind($sproc,"@lang",$LngCode,SQLVARCHAR,false,false);
$GET_EXHIBITS=mssql_execute($sproc);

what is my wrong?

There is a coding error

This question has already been answered. Start a new discussion instead.