当前位置:Gxlcms > 数据库问题 > PHP中mysqli_errno和mysqli_error的区别和使用

PHP中mysqli_errno和mysqli_error的区别和使用

时间:2021-07-01 10:21:17 帮助过:15人阅读

 

mysqli_errno() 函数返回最近调用函数的最后一个错误代码。

mysqli_error() 函数返回最近调用函数的最后一个错误描述。

 

 mysqli_errno(connection);mysqli_error(connection);

返回值: 返回错误代码值。如果没有错误发生则返回 0。

返回值: 返回一个带有错误描述的字符串。如果没有错误发生则返回 ""。

PHP中mysqli_errno和mysqli_error的区别和使用

标签:bsp   nec   strong   sqli   uil   span   focus   end   函数返回   

人气教程排行