mssql_min_message_severity Sets the minimum message severity


mssql_min_message_severity

(PHP 4, PHP 5, PECL odbtp >= 1.1.1)

mssql_min_message_severitySets the minimum message severity

说明

void mssql_min_message_severity ( int $severity )

Sets the minimum message severity.

参数

severity

The new message severity.

返回值

没有返回值。

范例

Example #1 mssql_min_message_severity() 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');
?>

以上例程会输出:

mssql_select_db(): Unable to select database:  THIS_DATABASE_DOES_NOT_EXISTS


«  mssql_min_error_severity
» mssql_next_result
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3