본문 바로가기

상속 class Employee { String name; int age; // public Employee() { // this("강호동", 49); // } public Employee(String name, int age) { this.name = name; this.age = age; } public void getInfo() { System.out.println("이름: "+name+" \n나이: "+age); } } class Waiter extends Employee { String dress; public Waiter(String name, int age, String dress) { super(name, age); this.dress = dress; } public void getInfo() .. 더보기
ORACLE 간략정리 데이터베이스는 데이터(data)와 베이스(base) 합성어이며 DBMA는 Database Management System의 약자로 데이터베이스 관리시스템을 의미한다. 개체(entity) : 데이터베이스에서 데이터화하려는 사물, 개념의 정보 단위. 관계형 데이터베이스의 테이블(table) 개념과 대응되며 테이블은 릴레이션(relation)으로 표기하기도 한다. 속성(attribute) : 개체를 구성하는 데이터의 가장 작은 논리적 단위로서 데이터의 종류, 특성, 상태 등을 정의합니다. 관계형 데이터베이스의 열(column) 개념과 대응된다. 관계(relationship) : 개체와 개체 또는 속성간의 연관성을 나타내기 위해 사용. 관계형 데이터베이스에서는 테이블 간의 관계를 외래키(foreign key) .. 더보기
힌트 기능 끄기 https://stackoverflow.com/questions/52349691/in-visual-studio-code-how-do-i-disable-all-suggestions-and-other-tool-tips In Visual Studio Code, how do I disable all suggestions and other tool-tips?I've disabled every setting that appears to cause the suggestions and tool tips similar to the one below: screenshot of the tool-tip Here is a my settings.json: { "editor.stackoverflow.com 상당히 눈에 거슬리는 힌.. 더보기
php checkbox 데이타 넘기기 " class="cateSelect" id="" />// 데이타 받기$cateSelect = $_POST['cateSelect']; // 받음// echo "cateSelect: ".$cateSelect;$cateSelect = implode(',',$cateSelect);echo $cateSelect;echo "";var_dump($_POST['cateSelect']);echo "";echo "========================";echo "";foreach($_POST['cateSelect'] as $items){    echo "g: ".$items;    echo "";} 더보기
static 자주 안썼더니 계속 까먹는다 땅콩도 아닌데별수 없다 매일은 아니더라도 자주 상기시키자....에공 힘들다. 소스는 생활코딩 소스... 더보기
https://developer.mozilla.org/ko/docs/Web/API/FileReader/readAsDataURL https://developer.mozilla.org/ko/docs/Web/API/FileReader/readAsDataURL 더보기
call() https://www.w3schools.com/js/js_function_call.asp Ex1:var person = { firstName:"John", lastName: "Doe", fullName: function () { return this.firstName + " " + this.lastName; } } person.fullName(); // Will return "John Doe" Ex2:var person = { firstName:"John", lastName: "Doe", fullName: function() { return this.firstName + " " + this.lastName; } } var myObject = { firstName:"Mary", lastName: "Doe".. 더보기
CSS :nth-of-type() Selector CSS :nth-of-type() Selector The first paragraph.The second paragraph.The third paragraph.The fourth paragraph.The fifth paragraph.The sixth paragraph.The seventh paragraph.The eight paragraph.The ninth paragraph. https://www.w3schools.com/cssref/sel_nth-of-type.asp 더보기
체크박스2 체크박스 농구 더보기
체크박스1 체크박스 농구 The text of this div element cannot be selected. If you double-click me, my text will not be highlighted. 더보기
float 아래 콘텐츠 안밀려올라가기 .productInfoWrap{ width:1200px;border-top:1px solid #D7D7D7;border-bottom:1px solid #D7D7D7;}.productInfoWrap:after{display:block;clear:both;content:""}.productInfoWrap .leftBox{float:left;/* border-left:1px solid #D7D7D7; */}.productInfoWrap .rightBox{float:right;width:498px;height:394px;background:yellow;border-right:1px solid #D7D7D7;}.productInfoWrap .leftBox .prdThumBox{position:relative;wi.. 더보기
Left 높이(100%) 만들기 + 부모 넓이 인식시키기 #wrap{ overflow:hidden; position:relative; width:1000px; margin:0 auto; border:1px solid black;}#left_area{ position:absolute; top:0px; left:0px; bottom:0px; width:200px; color:#FFFFFF; background:black;}#content{ float:right; display:block; width:750px; min-height:300px;} 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역 왼쪽영역.. 더보기
데이터 클래스(CLASS)에 저장 class Std {    public $name = '';    public $age  = '';    public $role = '';}    $obj = new GetGategory();    $obj->name = 'Alex';    $obj->age  = 24;    $obj->role = 'PHP Developer';    echo json_encode($obj);?> 더보기
ajax 사용법 // var data = $("form[name='commentForm']").serialize(); // // console.log(data); // data.push({procType:"W"});// var data = $("form[name='commentForm']").serialize()+"&procType=R";// console.log(data);var idx = $(this).attr('data-idx');var orgId = $(this).attr('data-orgId');var levelId = $(this).attr('data-Level'); $.ajax({type:'POST',dataType:'json',data:{idx:$('input[name=idx]').val(),cIdx:id.. 더보기
mysql 다음 인덱스 값 뽑기 $sql = "SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbname-homes-omachine' AND TABLE_NAME = 'COMMENTSTBL'";$stmt = $pdo->query($sql);$resultMaxIdx = $stmt->fetch(PDO::FETCH_NUM); var_dump($stmt);var_dump($resultMaxIdx); $cmtOriginId = $resultMaxIdx[0];echo " ";echo $cmtOriginId; 더보기
INFORMATION_SCHEMA.TABLES INFORMATION_SCHEMA.TABLES 최근 인덱스 번호 뽑기SELECT AUTO_INCREMENTFROM INFORMATION_SCHEMA.TABLESWHERE TABLE_SCHEMA = "dbname-homes-omachine"AND TABLE_NAME = "COMMENTSTBL"; 더보기
Div 등 간격 줄이기 2 body{font-family:'Nanum Gothic','나눔고딕','MalgunGothic','맑은고딕','Dotum','돋움',Gulim,Helvetica,sans-serif;font-size:12px;color:#1E1E1E;/* line-height:18px; div등 간격이 생김 */} 더보기
Div 간격이 있을 경우 font-size:0; 를 준다. Div 간격이 있을 경우 부모 엘리먼트에 font-size:0; 를 준다. 더보기
border 사이즈 합치기 /* border 사이즈 합치기(뚜께,패딩,마진 합해서 계산) */-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; 더보기
MYSQL 마지막 인덱스값 가져오기 // 인덱스 값 가져오기() // $lastId = $pdo->lastInsertId(); LAST_INSERT_ID() 더보기