$select_table_query = "show tables like 'note'";
$query_go = mysql_query($select_table_query, $db_connect_id);
$query_result = mysql_fetch_row($query_go);

if($query_result[0] == $table_name) echo 'note라는 테이블이 있습니다.';

else echo 'note라는 테이블이 없습니다.';

exit;

'MYSQL' 카테고리의 다른 글

MySQL 문자열 길이 구하는 함수  (0) 2014.03.13
Posted by 초보용
,