web1/dbtest.php
2025-12-03 21:15:10 +09:00

20 lines
465 B
PHP

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include __DIR__ . '/config/dbconfig.php'; // DB 연결
include __DIR__ . '/config/member.php'; // 파일명 정확히 수정!!! (member1.php ❌)
// 아이디 중복 테스트
$id = 'sokuree';
$mem = new Member($db);
if ($mem->id_exists($id)) {
echo "ID '{$id}'는 이미 존재합니다.";
} else {
echo "ID '{$id}'는 사용 가능합니다.";
}