prepare($sql); $stmh->bindValue(1,$id,PDO::PARAM_STR); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // 위의 형식이 일반적으로 DB 정보를 가져올때 사용하는 방식이다. $level = $row["level"]; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } if($level>5){ print "가입승인이 필요합니다. 본사 관리자에게 문의하세요.

"; print "

" ; } } header("Location:/index.php"); ?>