'개발/마케팅 기록들/개발일지'에 해당되는 글 3건

  1. 2006/07/19 [함수] 문자열 자르는 함수
  2. 2006/07/13 [MySQL] 서브쿼리없이 차집합 구하기
  3. 2006/06/20 [2006년6월20일] nl2br 문제 ~ 이벤트 상품 갯수 카운팅
mb_strimwidth
(PHP 4 >= 4.0.6, PHP 5)
mb_strimwidth -- Get truncated string with specified width
 
Description
string mb_strimwidth ( string str, int start, int width, string trimmarker [, string encoding])


mb_strimwidth() truncates string str to specified width. It returns truncated string.
If trimmarker is set, trimmarker is appended to return value.
start is start position offset. Number of characters from the beginning of string. (First character is 0)
trimmarker is string that is added to the end of string when string is truncated.
encoding is character encoding. If it is omitted, internal encoding is used.

사용 : string mb_strimwidth ( string str, int start, int width, string trimmarker [, string encoding])

<?php
$str = "article test abcdefg..";
$str = mb_strimwidth($str, 0, 8, "...");

echo $str;
?>
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by Nuki

SELECT b.user_id
FROM order_info_m a
RIGHT JOIN _20060711 b ON a.user_id = b.user_id
WHERE a.user_id IS NULL ;


b와 a의 차집합은 아우터 조인으로 해결 할 수 있다.
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by Nuki
[버그로그]
2006년 6월 20일

  1. tiny_mce 연동 시 <br>테그가 nl2br때문에 두개씩 들어가는 문제
    -> nl2br 함수 삭제로 해결.
  2. 공지사항 글 삭제 문제
    -> 세션체크(어드민) 빠짐

[개발로그]

  1. 네일 상품 이벤트 상품별 갯수, 이벤트 상품 각각에 대한 갯수 체크
    //이벤트 상품 별 갯수 배열 정의
    $arr_goods_sum[$goods_no] = $goods_qty;

    //이벤트 상품일 경우 합계에 +1 시켜주기.  
    $array_nail_cnt = array('339','345','354','370','371','375','388','389','390','1933','421','429','497','499','500','698','699','700','745','746','931','934','1736','1738','1740','1744','1745','1746','1747','1748','1749','1750','1751','1752','1753','1755','1756','1757','1935','1936','1937','1938','1939','2099','2100','2104','2105','2106','2113','2114','2115','2998','2999','3000','3001','3002','3003','3004','3005','3006','3007','3675','3676','3677','4770','4771','4769','4768');
    if(in_array($goods_no,$array_nail_cnt)) {
       $nail_cnt++;
       $total_goods_qty += $arr_goods_sum[$goods_no];
    }

    //해당 이벤트 경우 continue시키고 별도 페이지 보여줌
    $array_nail = array('event_20060612_1','event_20060612_2','event_20060612_3','event_20060612_4','event_20060612_5','event_20060612_6','event_20060612_7','event_20060612_8');
    if(in_array($buyevent_id,$array_nail)) {
    continue;
    //$event_nail += $goods_qty;
    }
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by Nuki
이전버튼 1 이전버튼

블로그 이미지
가족여행, 육아일기, 온라인 마케팅, 웹 프로그램, IT 트렌드
Nuki

공지사항

Yesterday55
Today8
Total321,663

달력

 « |  » 2012.02
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

최근에 받은 트랙백

글 보관함