테이블중복검사 (1) 썸네일형 리스트형 DB존재 파악하고 없으면 DB테이블 생성 많은 방법들이 있겠지만, 가장 널리 쓰이는 2가지 방법을 정리하면 1. SQL create table if not exists 'tablename' 2. Function function table_exist_check($table,$handle) { $result = mysql_query("SHOW TABLES LIKE '{$table}'",$handle); $row = mysql_fetch_assoc($result); if ( $row ) return true; return false; } table_check3('tablename',$dbconn); 이전 1 다음