MSSQL_MIN_MESSAGE_SEVERITY(3) MSSQL_MIN_MESSAGE_SEVERITY(3)
mssql_min_message_severity - Sets the minimum message severity
SYNOPSIS
void mssql_min_message_severity (int $severity)
DESCRIPTION
Sets the minimum message severity.
PARAMETERS
o $severity
- The new message severity.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
mssql_min_message_severity(3) example
<?php
// Connect to MSSQL
mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi');
// Set the minimum message severity to 17, this
// will not show any messages issued by the underlaying
// API when we select a non-existent database below
mssql_min_message_severity(17);
// Select a non-existent database
mssql_select_db('THIS_DATABASE_DOES_NOT_EXISTS');
?>
The above example will output:
mssql_select_db(): Unable to select database: THIS_DATABASE_DOES_NOT_EXISTS
PHP Documentation Group MSSQL_MIN_MESSAGE_SEVERITY(3)