I added variables for login_id and password as shown below but it says I have too many arguments. The login_id and password aren't input, just output. Any ideas? What did you mean by the 5th argument?
elseif($this->config->passtype === 'pc' and preg_match('/P\d{9}$/', $extpassword))
{$sp = mssql_init("unx_sp_unexMoodleSSI"); // stored proc name
mssql_bind($sp, "@session_id", ($extusername), SQLVARCHAR, false, false, 255);
mssql_bind($sp, "@people_code_id", ($extpassword), SQLVARCHAR, false, false, 255);
mssql_bind($sp, "@login_id", ($extusername), SQLVARCHAR, true, false, 255);
mssql_bind($sp, "@password", ($extpassword), SQLVARCHAR, true, false, 255);
mssql_execute($sp);