골

테이블 만들기가 왜 안되죠?

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

<?
//-----------------------------------------------------
// 타 이 틀 : 팝업창관리 Ver 1.0
// 홈페이지 : http://www.logoff.co.kr/
// E-MAIL : [email protected]
// Messenger : 네이트온 [email protected]
// 최종수정일 : 2008. 04. 20
//-----------------------------------------------------
?>
<?
include_once("./_common.php");

// 팝업창 데이터베이스 업데이트 파일
$mysql_schema_popup = "(
`pop_id` int(11) NOT NULL auto_increment,
`pop_title` varchar(255) NOT NULL default '',
`pop_use` char(1) NOT NULL default '0',
`start_date` varchar(255) NOT NULL default '',
`end_date` varchar(255) NOT NULL default '',
`bn_content` text NOT NULL,
`popsize_width` int(4) NOT NULL default '0',
`popsize_height` int(4) NOT NULL default '0',
`popposition_left` int(4) NOT NULL default '0',
`popposition_top` int(4) NOT NULL default '0',
`create_date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (pop_id)
) ENGINE=InnoDB
";

// 팝업창
$sql = "
CREATE TABLE g4_popup
$mysql_schema_popup
";
sql_query($sql);

alert("팝업 테이블이 생성되었습니다. 반드시 현재파일(popup_sql.php)을 삭제해 주세요.","./popup_list.php");
?>


웹에서 파일을 실행하면 다음과 같이 나오네요

CREATE TABLE g4_popup ( `pop_id` int(11) NOT NULL auto_increment, `pop_title` varchar(255) NOT NULL default '', `pop_use` char(1) NOT NULL default '0', `start_date` varchar(255) NOT NULL default '', `end_date` varchar(255) NOT NULL default '', `bn_content` text NOT NULL, `popsize_width` int(4) NOT NULL default '0', `popsize_height` int(4) NOT NULL default '0', `popposition_left` int(4) NOT NULL default '0', `popposition_top` int(4) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (pop_id) ) ENGINE=InnoDB

1050 : Table 'g4_popup' already exists

error file : /gn/adm/popup_sql.php

댓글 2개

g4_popup 이라는 테이블이 이미생성되어 있는거 아닌가요?
없는데 계속 이런 에러가 나오네요
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
09-03-19 조회 1,017
09-03-19 조회 1,115
09-03-19 조회 1,531
09-03-19 조회 1,667
09-03-19 조회 1,258
09-03-19 조회 1,601
09-03-19 조회 1,027
09-03-19 조회 1,195
09-03-19 조회 1,669
09-03-19 조회 2,816
09-03-19 조회 979
09-03-19 조회 1,056
09-03-19 조회 1,038
09-03-19 조회 1,024
09-03-18 조회 949
09-03-18 조회 1,049
09-03-18 조회 903
09-03-18 조회 1,120
09-03-18 조회 1,004
09-03-18 조회 1,080