error file : /index.php 의 1146 에러 메세지
본문
팝업창 관리기능 1.7의 추가해라해서 추가를 했는데
select * from g4_topschool_popup where po_start_date < '2014-05-27 04:33:22' and po_end_date > '2014-05-27 04:33:22' and po_openchk = '1'
1146 : Table 'dbminuk22.g4_topschool_popup' doesn't exist
error file : /index.php
이렇게 뜨네요? 밑의 디비도 추가를 제대로 된것 같지도 않구요 ㅠㅠ
DB추가
CREATE TABLE `g4_topschool_popup` (
`po_id` int(11) NOT NULL auto_increment,
`po_skin` varchar(255) NOT NULL default '',
`po_dir` varchar(255) NOT NULL default '',
`po_popstyle` tinyint(1) NOT NULL default '0',
`po_openchk` tinyint(1) NOT NULL default '0',
`po_start_date` varchar(19) NOT NULL default '',
`po_end_date` varchar(19) NOT NULL default '',
`po_expirehours` int(4) NOT NULL default '0',
`po_scrollbar` tinyint(1) NOT NULL default '0',
`po_leftcenter` tinyint(1) NOT NULL default '0',
`po_topcenter` tinyint(1) NOT NULL default '0',
`po_left` int(4) NOT NULL default '0',
`po_top` int(4) NOT NULL default '0',
`po_width` int(4) NOT NULL default '0',
`po_height` int(4) NOT NULL default '0',
`po_act` varchar(25) NOT NULL default '',
`po_actc` varchar(25) NOT NULL default '',
`po_delay` int(11) NOT NULL default '0',
`po_subject` varchar(255) NOT NULL default '',
`po_content` text NOT NULL,
`po_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`po_id`),
KEY `po_date` (`po_start_date`,`po_end_date`),
KEY `po_openchk` (`po_openchk`)
) TYPE=MyISAM ;
`po_id` int(11) NOT NULL auto_increment,
`po_skin` varchar(255) NOT NULL default '',
`po_dir` varchar(255) NOT NULL default '',
`po_popstyle` tinyint(1) NOT NULL default '0',
`po_openchk` tinyint(1) NOT NULL default '0',
`po_start_date` varchar(19) NOT NULL default '',
`po_end_date` varchar(19) NOT NULL default '',
`po_expirehours` int(4) NOT NULL default '0',
`po_scrollbar` tinyint(1) NOT NULL default '0',
`po_leftcenter` tinyint(1) NOT NULL default '0',
`po_topcenter` tinyint(1) NOT NULL default '0',
`po_left` int(4) NOT NULL default '0',
`po_top` int(4) NOT NULL default '0',
`po_width` int(4) NOT NULL default '0',
`po_height` int(4) NOT NULL default '0',
`po_act` varchar(25) NOT NULL default '',
`po_actc` varchar(25) NOT NULL default '',
`po_delay` int(11) NOT NULL default '0',
`po_subject` varchar(255) NOT NULL default '',
`po_content` text NOT NULL,
`po_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`po_id`),
KEY `po_date` (`po_start_date`,`po_end_date`),
KEY `po_openchk` (`po_openchk`)
) TYPE=MyISAM ;
답변 3
po_leftcenter 필드가 create table sql문에 누락되어 있습니다.
기존 생성된 테이블에 alter 문으로 필드 추가해 주세요.
alter table g4_topschool_popup add column po_leftcenter 에
데이터 형식과 필드자리수 null 여부 포함해서
추가해주세요.
테이블이 생성되지 않아 발생한 에러 입니다
create 디비 생성문 오류로 안될수 있으니 다시 확인해보세요
create 디비 생성문 오류로 안될수 있으니 다시 확인해보세요
기존 만든필드테이블 지우고
새로운거 찾아 다시만들어 해결했습니다 ^^
답변을 작성하시기 전에 로그인 해주세요.