db를 추가하란 말이 무슨 얘긴지요? 정보
db를 추가하란 말이 무슨 얘긴지요?본문
http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=92525
위 링크에서 팝업창관리를 다운받아 설치하는 중 아래 내용을 보고 한계에
다다랐습니다. 완전 초짜라서 db를 어디에 어떻게 추가하는건지 전혀 모르겠습니다.
구체적인 실행방법을 알려주십시요. 아래 소스를 어떻게 하라는 건지...어디에 올리라는 건지..
현재 위 링크의 아래 전단계까진 실행했으나, 아래 디비추가가 안되서 그런지 관리자 접속에
에러가 발생하는 상황입니다. 도움 부탁드립니다.
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_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_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 ;
위 링크에서 팝업창관리를 다운받아 설치하는 중 아래 내용을 보고 한계에
다다랐습니다. 완전 초짜라서 db를 어디에 어떻게 추가하는건지 전혀 모르겠습니다.
구체적인 실행방법을 알려주십시요. 아래 소스를 어떻게 하라는 건지...어디에 올리라는 건지..
현재 위 링크의 아래 전단계까진 실행했으나, 아래 디비추가가 안되서 그런지 관리자 접속에
에러가 발생하는 상황입니다. 도움 부탁드립니다.
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_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_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 ;
댓글 전체

잘모르시는 것같아서 가라로 할수잇는 방법 말씀드릴깨요
/adm/ 폴더 보시면
index.php 라는 파일이 있을꺼에요
거기 열어보시면 재일 하단 부분에 아래 내용이 있을껀대요
<?
include_once ("./admin.tail.php");
?>
아래 부분처럼 바까주시고 관리자 한번 들어가셧다가 원래대로 다시 하셔도되요
<?
$pop_sql = "
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_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_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 ;";
sql_query($pop_sql);
include_once ("./admin.tail.php");
?>
/adm/ 폴더 보시면
index.php 라는 파일이 있을꺼에요
거기 열어보시면 재일 하단 부분에 아래 내용이 있을껀대요
<?
include_once ("./admin.tail.php");
?>
아래 부분처럼 바까주시고 관리자 한번 들어가셧다가 원래대로 다시 하셔도되요
<?
$pop_sql = "
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_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_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 ;";
sql_query($pop_sql);
include_once ("./admin.tail.php");
?>
탑스쿨님 말씀처럼 모두 했는데, 관리자를 클릭하면 들어가지지 않고 아래와 같은 메세지가 뜹니다.
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/hosting_users/ssa5012/www/hots/community/adm/admin.menu100.php on line 17
또, 메인 로그인박스에서 쪽지를 클릭하면
하단부에
// 팝업실행(head에 넣으면 안됨 출력부분이 있어서 exploed 라이브러리에 넣어도 안됨 head 보다 위쪽에 들어감) include_once "lib/popup.lib.php";
요게 그대로 노출이 됩니다..ㅜㅜ
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/hosting_users/ssa5012/www/hots/community/adm/admin.menu100.php on line 17
또, 메인 로그인박스에서 쪽지를 클릭하면
하단부에
// 팝업실행(head에 넣으면 안됨 출력부분이 있어서 exploed 라이브러리에 넣어도 안됨 head 보다 위쪽에 들어감) include_once "lib/popup.lib.php";
요게 그대로 노출이 됩니다..ㅜㅜ

재 설명을 차근차근 따라서 하시면 되실꺼에요 ^^ 실무에서 사용하던거라 안될수가 없어요
그리고 아래 오류는 menu100 에 추가 하실때 잘못추가하셔서 그런것이구요
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/hosting_users/ssa5012/www/hots/community/adm/admin.menu100.php on line 17
그리고 아래 오류는 menu100 에 추가 하실때 잘못추가하셔서 그런것이구요
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/hosting_users/ssa5012/www/hots/community/adm/admin.menu100.php on line 17
탑스쿨님, 제가 보니 메뉴100에 잘못 올렸었네요..다시 수정하니 관리자엔 정상적으로 접속이 되는데,
팝업관리를 누르니,
select count(*) as cnt from g4_topschool_popup where 1=1 order by po_datetime desc
1146 : Table 'ssa5012.g4_topschool_popup' doesn't exist
error file : /hots/community/adm/popup_list.php
와 같은 메시지가 뜹니다...ㅜㅜ
팝업관리를 누르니,
select count(*) as cnt from g4_topschool_popup where 1=1 order by po_datetime desc
1146 : Table 'ssa5012.g4_topschool_popup' doesn't exist
error file : /hots/community/adm/popup_list.php
와 같은 메시지가 뜹니다...ㅜㅜ

흠.. 사용법을 재대로 안읽으셧나보내요..
처음부터 다시한번 차근 차근 읽어보고 늦더라도 하나식 하나식 적용해보세요..
테이블을 추가 안하셧나바요..
처음부터 다시한번 차근 차근 읽어보고 늦더라도 하나식 하나식 적용해보세요..
테이블을 추가 안하셧나바요..
않되네요..왕초보라..일단 넘어가고...담에 다시 도전할께요...ㅎㅎ