접속한 브라우저가 크롬인지 여부 확인 정보
접속한 브라우저가 크롬인지 여부 확인본문
브라우저가 크롬인지 여부를 확인하여 처리할려고 하는데요.
아래와 같이 하면 될지 않았는데, 잘안되네요.
조언 좀 부탁드립니다.
$ua = $_SERVER['HTTP_USER_AGENT'];
if(preg_match("Mozilla/5.0", $ua)){
echo "크롬";
}
아래와 같이 하면 될지 않았는데, 잘안되네요.
조언 좀 부탁드립니다.
$ua = $_SERVER['HTTP_USER_AGENT'];
if(preg_match("Mozilla/5.0", $ua)){
echo "크롬";
}
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339