분류 전체보기933 [JSP] how to upload image using JSP This is the form html Here is upload.jsp -1) { String s = new String(b,0,x); if(s.startsWith(boundary)) { state = 0; //out.println("name="+name+" "); //out.println(fileName+" "); name = null; contentType2 = null; fileName = null; }else if(s.startsWith("Content-Disposition") && state==0) { state = 1; if(s.indexOf("filename=") == -1) name = s.substring(s.indexOf("name=") + "name=".length(),s.lengt.. 2009. 1. 21. MYSQL 필드속에 일괄적으로 내용 집어넣기 필드에 이미 값이 있는 상태에서 특정 값을 추가로 집어넣기 예로 reg_date 라는 필드에 "1234"라는 값이 있는데 추가로 "00" 이라는 값을 붙이고 싶을때 concat 을 사용합니다. update member set code = concat(reg_date,"00") 결과 : "123400" 출처 : 세이박스 http://saybox.tistory.com 2009. 1. 15. MYSQL 설치시 configure: error: 발생시 checking "LinuxThreads"... "Not found" configure: error: This is a linux system and Linuxthreads was not found. On linux Linuxthreads should be used. Please install Linuxthreads (or a new glibc) and try again. See the Installation chapter in the Reference Manual for more information. 가 나타나면.... /usr/include/pthread.h 파일에서 암때나 /* Linuxthreads */ 를 입력 이유 : mysql configure 과정에서 pthread.h 파일을 찾아 위 문.. 2009. 1. 15. MYSQL consider upgrading MySQL client Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client 위와 같은 오류 발생은 MySQL 5.0 사용시 PHP버전이 5.0 이하 버전인 경우 발생 합니다. MySQL 5.0 부터 새로운 패스워드 방식으로 만들어 지므로 기존 PHP 버전에서 접속할 수 없으므로 PHP 5.x 이상 버전으로 업하셔야합니다. 만약 상위 버전 사용이 어럽다면 MySQL의 비번을 이전 방식으로 변경 가능합니다. 1. 이전 방식의 비번으로 변경 ㅇUPDATE mysql.user SET Password = OLD_PASSWORD('password') ; 2. MyS.. 2009. 1. 15.