zoukankan
html css js c++ java
PHP mysqli_connect_errno() 函数
实例
返回上一次连接错误的错误代码:
<?php
$con
=
mysqli_connect
(
"
localhost
"
,
"
wrong_user
"
,
"
my_password
"
,
"
my_db
"
)
;
//
检测是否连接成功
if
(
!
$con
)
{
die
(
"
连接失败:
"
.
mysqli_connect_errno
(
)
)
;
}
?>
定义和用法
mysqli_connect_errno() 函数返回上一次连接错误的错误代码。
语法
mysqli_connect_errno()
;
高佣联盟
www.cgewang.com
技术细节
返回值:
返回错误代码值,如果没有错误发生则返回 0。
PHP 版本:
5+
查看全文
相关阅读:
repair table
利用逻辑备份恢复部分库表
Web框架理解
BootStrape基础使用
jQuery入门
BOM操作
DOM操作
day12 css样式
JavaScript基础
day11 前端知识简单总结
原文地址:https://www.cnblogs.com/yc10086/p/13089352.html
最新文章
8_15 并发编程4,线程池与协程,io模型
8_14 并发编程三 线程的GIL
Codeforces Round #526 (Div. 2) D. The Fair Nut and the Best Path 树上dp
Codeforces Round #525 (Div. 2) C. Ehab and a 2-operation task 数学 mod运算的性质
Codeforces Round #525 (Div. 2) E. Ehab and a component choosing problem 数学
Codeforces Round #553 (Div. 2) C. Problem for Nazar 数学
Codeforces Round #524 (Div. 2) C. Masha and two friends 几何:判断矩形是否相交以及相交矩形坐标
Codeforces Round #553 (Div. 2) D. Stas and the Queue at the Buffet 贪心+公式转化
Codeforces Round #553 (Div. 2)B. Dima and a Bad XOR 思维构造+异或警告
Codeforces Round #523 (Div. 2) D. TV Shows 模拟(多重集 先把所有区间加入多重集合)+贪心+二分
热门文章
Educational Codeforces Round 63 (Rated for Div. 2) B. Game with Telephone Numbers 博弈思维+模拟+贪心思维
Educational Codeforces Round 63 (Rated for Div. 2) D. Beautiful Array 分类讨论连续递推dp
linux性能检测
Aurora sysbench压测
收录文章
mgr
网络yum源配置
old password
linux环境初始化
mongo备份恢复
Copyright © 2011-2022 走看看