session 유지하는 법

웹/php 2016. 4. 25. 16:07

session 유효시간 지정하기

session_cache_expire(30);    //session_start 앞에 실행 되어야됨 30분설정


session 시작하기 

session_start();    //session을 사용하기 원하는 페이지에서는 무조건 맨 앞에 실행


session 등록 

$_session["id"] = "아디"

$_session["pw"] = "패스워드"


session 변수값 삭제 및 소멸

unset($_session["id"])

' > php' 카테고리의 다른 글

코드이그나이터 index.php 없애기  (0) 2016.05.23
php 파일 읽기  (0) 2016.04.25
텍스트 글짜 한정  (0) 2016.03.30
php 파일 업로드  (0) 2016.03.30
php curl 사용 예제  (0) 2016.03.30
Posted by 몽키 D.루피
,

FpStest.Sheets(0).SetRowHeight(4, 60)


크기조절

Posted by 몽키 D.루피
,

초성 검색 예제

db 2016. 4. 12. 15:52


        case 'ㄱ':
                $qry = "and (title RLIKE '^(ㄱ|ㄲ)' OR ( title >= '가' AND title < '나' )) order by title"; 
                break;
        case 'ㄴ':
                $qry = "and (title RLIKE '^ㄴ' OR ( title >= '나' AND title < '다' )) order by title"; 
                break;
        case 'ㄷ':
                $qry = "and (title RLIKE '^(ㄷ|ㄸ)' OR ( title >= '다' AND title < '라' )) order by title"; 
                break;
        case 'ㄹ':
                $qry = "and (title RLIKE '^ㄹ' OR ( title >= '라' AND title < '마' )) order by title"; 
                break;
        case 'ㅁ':
                $qry = "and (title RLIKE '^ㅁ' OR ( title >= '마' AND title < '바' )) order by title";        
                break;
        case 'ㅂ':
                $qry = "and (title RLIKE '^ㅂ' OR ( title >= '바' AND title < '사' )) order by title"; 
                break;
        case 'ㅅ':
                $qry = "and (title RLIKE '^(ㅅ|ㅆ)' OR ( title >= '사' AND title < '아' )) order by title"; 
                break;
        case 'ㅇ':
                $qry = "and (title RLIKE '^ㅇ' OR ( title >= '아' AND title < '자' )) order by title"; 
                break;
        case 'ㅈ':
                $qry = "and (title RLIKE '^(ㅈ|ㅉ)' OR ( title >= '자' AND title < '차' )) order by title"; 
                break;
        case 'ㅊ':
                $qry = "and (title RLIKE '^ㅊ' OR ( title >= '차' AND title < '카' )) order by title"; 
                break;
        case 'ㅋ':
                $qry = "and (title RLIKE '^ㅋ' OR ( title >= '카' AND title < '타' )) order by title"; 
                break;
        case 'ㅌ':
                $qry = "and (title RLIKE '^ㅌ' OR ( title >= '타' AND title < '파' )) order by title"; 
                break;
        case 'ㅍ':
                $qry = "and (title RLIKE '^ㅍ' OR ( title >= '파' AND title < '하' )) order by title"; 
                break;
        case 'ㅎ':
                $qry = "and (title RLIKE '^ㅎ' OR ( title >= '하')) order by title"; 
                break;
        default:
                $qry = "order by title";

'db' 카테고리의 다른 글

mysql 테이블 비우기  (0) 2016.11.03
mysql insert시 시간 자동 데이터 입력  (0) 2016.06.29
mysql 날짜 연산  (0) 2016.06.09
Posted by 몽키 D.루피
,