PHP 8.1 mysqli_report 설정 수정
This commit is contained in:
@ -1527,6 +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) {
|
||||||
|
mysqli_report(MYSQLI_REPORT_OFF);
|
||||||
$link = @mysqli_connect($host, $user, $pass, $db) or die('MySQL Host, User, Password, DB 정보에 오류가 있습니다.');
|
$link = @mysqli_connect($host, $user, $pass, $db) or die('MySQL Host, User, Password, DB 정보에 오류가 있습니다.');
|
||||||
|
|
||||||
// 연결 오류 발생 시 스크립트 종료
|
// 연결 오류 발생 시 스크립트 종료
|
||||||
|
|||||||
Reference in New Issue
Block a user