Basic Card

32일차

미션 접속한 사람의 IP를 확인할 수 있는 프로그램을 만들어라 테이블명 log idx(숫자),ip(문자),page(문자),regdate(날짜) 1 192.168.0.1 news > index.php 2025-02-01 2 192.168.0.1 news > delete.php 2025-02-01 클래스명 : Logs 함수명 : index,create,edit,delete routes> ci4.st.kr/log/ ci4.st.kr/log/create 저장완료후 ci4.st.kr/log/success로 이동 ci4.st.kr/log/edit/1 ci4.st.kr/log/delete/1 CREATE TABLE board ( id INT AUTO_INCREMENT PRIMARY KEY, title VARCHAR(255) NOT NULL, content TEXT NOT NULL, upfile VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); 로그 코드 모델 로그 코드 컨트롤러 로그 코드 컨트롤러 홈에서 코드 추가하면 사이트가 들어갈때 로그가 찍힌다