반응형 전체405 [ASP] ASP에서 DB 결과 객체를 함수에 전달하여 사용하기 function GetStatusTxt(obj) Dim strResult : strResult = "" if obj("price") > 0 and obj("status") = 1 then strResult = "완료" else strResult = "미완료" end if GetStatusTxt = strResult end function set objResult = server.createobject("adodb.recordset") dbQeury = "SELECT price, status FROM viewOrder" objResult.open dbQeury,dbConn,1 if objResult.bof = true then response.write "데이터가 없다" else do until objRe.. 2022. 10. 7. 자바스크립트 팝업 자동으로 닫기 자바스크립트로 팝업을 10초후에 닫는 코드이다. 5초후 팝업이 열리며, 열린 후 10초후 열린 팝업이 닫힘 2022. 10. 7. PHP의 함수와 변수 예제 1. 모든 줄바꿈 앞에 ' '를 삽입한 string을 반환 [사용 예] echo nl2br("A: 야\nB: 엉?\n"); [결과] A: 야 B: 엉? 2. Predefined variables (모두 연관 배열의 형태) $_SERVER : 웹서버, 스크립트 $_GET : GET 방식으로 사용자가 서버에 전송한 데이터 $_POST : POST 방식으로 사용자가 서버에 전송한 데이터 $_COOKIE : 쿠키 정보 $_REQUEST : GET이나 POST 방식을 통해 사용자가 서버에 전송한 데이터와 쿠키 정보 $_FILES : 파일 업로드를 통해 사용자가 서버에 전송한 데이터 $_SESSION : 세션정보 $_ENV : 서버 환경정보 $GLOBALS : 전역변수 3. 상수 정의 [사용 예] define("V.. 2022. 10. 7. [ASP] image 직접 삽입하지 않고 image 출력하기 2022. 10. 7. git 계정 초기화하는 방법 git config --local --unset credential.helper git config --global --unset credential.helper git config --system --unset credential.helper git config --local --unset user.name git config --local --unset user.email git config --global --unset user.name git config --global --unset user.email git config --system --unset user.name git config --system --unset user.email 2022. 10. 7. 갤럭시탭 A6 SM-T580 루팅하는 법(안드로이드 8.1 기준) https://youtu.be/jhs14PqczSQ 따라하니..성공했다!!!!! 2022. 10. 7. 이전 1 ··· 58 59 60 61 62 63 64 ··· 68 다음 728x90