mssql_min_error_severity Sets the minimum error severity php函数


mssql_min_error_severity

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

mssql_min_error_severitySets the minimum error severity

说明

void mssql_min_error_severity ( int $severity )

Sets the minimum error severity.

参数

severity

The new error severity.

返回值

没有返回值。

范例

Example #1 mssql_min_error_severity() example

<?php
// Connect to MSSQL and select the database
mssql_connect('KALLESPCSQLEXPRESS''sa''phpfi');
mssql_select_db('php');

// Set the minimum error severity to not include SQL 
// syntax errors by setting it to something greater than 
// or equal to 1.
mssql_min_error_severity(1);

// Send a query we know that will cause an syntax error, in
// this case we use the MySQL quote signs instead of wrapping 
// square brackets around the field and table names.
$query mssql_query('SELECT `syntax`, `error` FROM `MSSQL`');

if (!
$query) {
    
// Custom error handler ...
}
?>



相关阅读:
mssql_min_message_severity Sets the minimum message severity
mssql_next_result Move the internal result pointer to the next result
mssql_num_fields Gets the number of fields in result
mssql_num_rows Gets the number of rows in result
mssql_pconnect Open persistent MS SQL connection
mssql_query Send MS SQL query
mssql_result Get result data
mssql_rows_affected Returns the number of records affected by the query
mssql_select_db Select MS SQL database
mt_getrandmax 显示随机数的最大可能值
mt_rand 生成更好的随机数
mt_srand 播下一个更好的随机数发生器种子
mysqli_bind_param mysqli_stmt_bind_param的别名
mysqli_bind_result mysqli_stmt_bind_result的别名
快速导航

Copyright © 2016 phpStudy |