Skip to content

Commit

Permalink
mysqli_connect 오류시 "MySQL Host, User, Password, DB 정보에 오류가 있습니다." 메시지 출력
Browse files Browse the repository at this point in the history
  • Loading branch information
kagla committed Feb 23, 2022
1 parent 36baa2a commit 3247ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ function sql_connect($host, $user, $pass, $db=G5_MYSQL_DB)
global $g5;

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()) {
Expand Down

0 comments on commit 3247ae2

Please sign in to comment.