728x90
반응형

전체 글 326

[Javascript] alert 창 꾸미기 alertify.js 사용법

■ Javascript alert 창 꾸미기 alertify.js 사용법 alert 기능의 경고창을 JQuery UI Dialog 를 사용하여 꾸밀 수 있음 ■ 플러그인 설치 AlertifyJS All of AlertifyJS animation/transition effects are disabled due to user preference that the system minimizes the amount of animation or motion it uses. See prefers-reduced-motion CSS media feature. alertifyjs.com ■ 사용법 alertify.alert("문구입력"); ■ 결과

Javascript 2022.03.24

[Javascript] Export HTML to Word Document with JavaScript

■ Javascript Export HTML to Word Document with JavaScript 플러그인이나 라이브러리 없이 JavaScript만 사용하여 HTML을 Word 문서로 변환하는 법 ■ 사용법 HTML Artificial Intelligence Overview Artificial Intelligence(AI) is an emerging technology demonstrating machine intelligence. The sub studies like Neural Networks, Robatics or Machine Learning are the parts of AI. This technology is expected to be a prime part of the real worl..

Javascript 2022.03.18

HTTP Header Content-Type

■ HTTP Header Content-Type 보내는 자원 형식 명시를 위해 헤더에 실리는 정보로 리소스의 미디어 타입(media type)을 나타내기 위해 사용함 ■ 문법 Content-Type: text/html; charset=utf-8 Content-Type: multipart/form-data; boundary=something ■ 엘리먼트(요소) media-type 리소스 or 데이터의 MIME TYPE charset 문자 인코딩 표준 boundary 멀티 파트 경계선을 캡슐화하기 위해 사용 ■ Content-Type IN HTML form HTML form 전송 시 POST 요청의 Content-Type은 요소 상의 enctype 속성으로 지정됨 Submit ■ 예시 // 기본형태 Cont..

Tips 2022.03.16

[Javascript] Toast 창 토스트 메시지 띄우기 (사라지는 모달창)

■ Javascript Toast 창 토스트 메시지 띄우기 (사라지는 모달창) Toast(토스트) 메시지 창 짧은 메시지를 사용자(유저)에게 일정 시간 노출시킨 후 자동으로 사라지는 팝업으로 버튼 클릭 또는 어떠한 액션을 취한 이후 변경시점 또는 정보 전달 시 직관적으로 알려주기 좋음 ■ 예제 CSS #toast { position: fixed; bottom: 30px; left: 50%; padding: 15px 20px; transform: translate(-50%, 10px); border-radius: 30px; overflow: hidden; font-size: .8rem; opacity: 0; visibility: hidden; transition: opacity .5s, visibility..

Javascript 2022.03.04

[PHP] 최근 MySQL 작업으로 변경된 행 개수 구하기, mysql_affected_rows

■ PHP 최근 MySQL 작업으로 변경된 행 개수 구하기, mysql_affected_rows mysql_affected_rows INSERT, UPDATE, REPLACE, DELETE 질의로 영향받은 행 수를 얻을 때 사용하는 함수로 실패 시 "-1" 반환, 성공 시 적용된 행의 개수 반환 ■ 설명 mysql_affected_rows(resource $link_identifier = NULL): int ■ 사용법 $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('mydb'); /* this s..

PHP 2022.02.25

[PHP] PHP에서 .CSV 로 내보내기, php excel .csv file download

■ PHP php excel .csv file download PHP를 이용해 MySQL DB(데이터베이스)의 데이터 자체를 CSV 파일로 내보내야 하는 경우가 있음 ■ 예제 PHP를 이용해 CSV 파일 형태로 내보내는 예제 // 파일명 지정 $filename = "Example_Filename_" . date("Ymd") . ".csv"; header('Content-Type:text/css;charset=EUC-KR;'); header('Expires: 0'); header('Content-Transfer-Encoding: binary'); header('Cache-Control: private, no-transform, no-store, must-revalidate'); header("Content..

PHP 2022.02.24
728x90
반응형