Web Progreming
-
mysql ] 값이 있으면 insert : 없으면 updateWeb Progreming/MySql 2018.03.07 15:37
INSERT INTO `person` (name, phone, memo) VALUES ('홍길동', '011-0000-000', '홍길동입니다')ON DUPLICATE KEY UPDATE name=VALUES(name), phone=VALUES(phone), memo=VALUES(memo);#case1 '홍길동'이라는 이름의 컬럼이 없으면 INSERT => INSERT INTO `person` (name, ..
-
[ PHP ] 브라우저 정보 가져오기 - StackoverflowWeb Progreming/PHP_Function 2014.09.05 11:36
<?function get_useragent_info($ua) { $ua = is_null($ua) ? $_SERVER['HTTP_USER_AGENT'] : $ua; // Enumerate all common platforms, this is usually placed in braces (order is important! First come first serve..) $platforms = "Windows|iPad|iPhone|Macin..
-
[ jQuery ] datapicker 자주 쓰는 형식?Web Progreming 2013.09.05 10:25
$( ".dateType" ).datepicker({// 월을 바꿀수 있는 셀렉트 박스를 표시한다.changeMonth: true,// 년을 바꿀 수 있는 셀렉트 박스를 표시한다.changeYear: true,// 현재날짜로부터 100년이전까지 년을 표시한다.minDate: '-100y',// next 아이콘의 툴팁.nextText: '다음 달',// prev 아이콘의 툴팁.prevText: '이전 달',// 년도 선택 셀렉트박스를 현재 년도에서 이..