출석부 적용 질문입니다.

출석부 적용 질문입니다.

QA

출석부 적용 질문입니다.

답변 1

본문

http://sir.co.kr/g5_plugin/984?sfl=wr_subject%7C%7Cwr_content&stx=%EC%B6%9C%EC%84%9D%EB%B6%80

 

해당 출석부를 사용하려고 다운받고 플러그인에 넣어 놓았습니다.

 

DB 설치하는 곳 까지 나와서 설치를 누르면 적용 되었습니다 라고 뜨면서 실질적으로 DB미설치 라고 뜹니다.

 

그래서 phpmyadmin 들어가서 그누보드5 설치되어 있는 곳에 sql파일을 적용시켰습니다.

 

그래도 DB미설치라고 뜹니다.

 

따로 호스팅을 사용하고 있는게 아닌, Apmsetup을 사용하여 서버를 활성화 시켜서 테스트를 해보고 있는데, DB설치가 용이하지 않아서 질문 남겨드립니다.

이 질문에 댓글 쓰기 :

답변 1

CREATE TABLE IF NOT EXISTS `g5_attendance` (

  `idx` int(11) NOT NULL AUTO_INCREMENT,

  `mb_id` varchar(50) NOT NULL,

  `subject` varchar(255) NOT NULL,

  `day` int(11) NOT NULL DEFAULT '0',

  `reset` int(11) NOT NULL DEFAULT '0',

  `mb_point` int(11) NOT NULL DEFAULT '0',

  `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',

  `ip` varchar(255) NOT NULL DEFAULT '',

  PRIMARY KEY (`idx`)

) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ;

 

CREATE TABLE IF NOT EXISTS `g5_attendance_config` (

  `browser_title` varchar(255) NOT NULL,

  `power` tinyint(4) NOT NULL,

  `point` int(11) NOT NULL,

  `week_point` int(11) NOT NULL,

  `month_point` int(11) NOT NULL,

  `year_point` int(11) NOT NULL,

  `first_point` int(11) NOT NULL,

  `second_point` int(11) NOT NULL,

  `third_point` int(11) NOT NULL,

  `sta` time NOT NULL,

  `eta` time NOT NULL,

  `ip_check` int(11) NOT NULL,

  `initialization` tinyint(4) NOT NULL,

  `bonus` tinyint(4) NOT NULL,

  `subject_option` tinyint(4) NOT NULL,

  `subject` text NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=utf8;

 

INSERT INTO `g5_attendance_config` (`browser_title`, `power`, `point`, `week_point`, `month_point`, `year_point`, `first_point`, `second_point`, `third_point`, `sta`, `eta`, `ip_check`, `initialization`, `bonus`, `subject_option`, `subject`) VALUES

('출석부', 1, 50, 200, 300, 500, 100, 90, 80, '00:00:00', '24:00:00', 1, 1, 1, 1, '출석부가 좋더라~\r\n오늘도 힘차게 출석을 ^^\r\n빛보다 빠르게 출첵출첵!!\r\n불타는 하루를~\r\n느긋하게 출석체크 *^_^+\r\n자동 출석말 너무 편해요~\r\n무료로 배포되는 만능 출석부 !!\r\n중복 출석은 하지맙시다.!!\r\n나보다 출석 빨리하는사람 나와봐~\r\n출석 어서어서 꾸욱~');



위에 sql 로 DB 생성하세요
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로