디티트래커

디티트래커

반응형
  • Folders (121)
    • python (88)
    • Dev (13)
    • Data Analyst (20)
    • 독서&자기계발 (0)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

디티트래커

컨텐츠 검색

태그

Algorithm php Programming 알고리즘 개발자 신문스크랩 비전공개발자성장스토리 매일경제 코딩테스트 coding PYTHON GA4 Def 엄코딩 코딩 EomCoding 파이썬 프로그래밍 codingtest 비전공개발자

최근글

댓글

공지사항

아카이브

개발(3)

  • MySQL 마지막 등록된 ID값 구하기 (Last_Insert_ID)

    LAST_INSERT_ID는 보통 게시판을 개발하고 게시글 작성에서 댓글을 등록할 때나 파일을 등록할 때 필요하다. 내가 작성하는 글이 등록되면서 등록된 글의 ID를 외래키로 등록해주어야하기 때문이다. 아래는 PHP 작업환경에서 사용한 코드이다. $insertFatherQry = "INSERT INTO t_father_table (file_name, reg_date, reg_time, reg_emp ) VALUES('".$sales_file."',CURDATE(),CURTIME(),'".$reg_emp."')"; $Rst = que($insertFileHistoryQry); // que()는 쿼리실행하는 함수로 정의해놨음. // 마지막으로 Insert 된 ID값 구하기 $querySelectLastId ..

    2022.07.22
  • php에서 css이용하여 col별 비율 그래프 만들기

    %; height: 15px; padding: 0; text-align: center; background-color: #4F98FF; color: #111;">

    2022.07.22
  • JS 정규식으로 원하는 태그 제거하기 ( 테이블표 엑셀출력 과정 JS EXCEL DOWN )

    function tableToExcel(id, title) { var data_type = 'data:application/vnd.ms-excel;charset=utf-8'; var table_html = encodeURIComponent(document.getElementById(id).outerHTML.replace(/]*)>/gi, "")); var a = document.createElement('a'); a.href = data_type + ',%EF%BB%BF' + table_html; a.download = title + '.xls'; a.click(); } 위와 같은 함수를 사용해서 html의 table코드 그대로 엑셀로 다운받게 하는 과정에서 table코드 안에 있는 a태그로 감싸진 내용..

    2022.05.20
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바