mysqli_connect 오류시 "MySQL Host, User, Password, DB 정보에 오류가 있습니다." 메시지 출력
This commit is contained in:
@ -1527,7 +1527,7 @@ function sql_connect($host, $user, $pass, $db=G5_MYSQL_DB)
|
|||||||
global $g5;
|
global $g5;
|
||||||
|
|
||||||
if(function_exists('mysqli_connect') && G5_MYSQLI_USE) {
|
if(function_exists('mysqli_connect') && G5_MYSQLI_USE) {
|
||||||
$link = mysqli_connect($host, $user, $pass, $db);
|
$link = @mysqli_connect($host, $user, $pass, $db) or die('MySQL Host, User, Password, DB 정보에 오류가 있습니다.');
|
||||||
|
|
||||||
// 연결 오류 발생 시 스크립트 종료
|
// 연결 오류 발생 시 스크립트 종료
|
||||||
if (mysqli_connect_errno()) {
|
if (mysqli_connect_errno()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user