분류 생성 함수 정보
분류 생성 함수본문
function CategoryAdd($ca_name, $bo_table){
if($ca_name){
$row = sql_fetch(" select bo_category_list from g5_board where bo_table = '".$bo_table."' ");
$cut = explode("|", $row['bo_category_list']);
if(count($cut) == 0)
$add_category = $ca_name;
else
$add_category = $row['bo_category_list']."|".$ca_name;
if(!in_array($ca_name, $cut)){
sql_query(" update g5_board set bo_category_list = '".$add_category."' where bo_table = '".$bo_table."' ");
}
}
}
외부 페이지에서 분류를 자동으로 추가하기 위해 만듬
!-->
추천
1
1
댓글 5개
좋은 정보 감사합니다.
좋은 아이디어 이군요 ~~
좋은 공유를 해주셔서 감사합니다^ㅁ^
감사합니다~~
좋아요..잘쓰겠습니다.감사합니다.