/home/mjc1/public_html/manage/categoryGet1.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?
    
//categoryCheck.php
    
include("./category/common.php");

    
$cate1_code $_GET['cate1_code'];

    
mysql_query("set names euc-kr");

    
$sql "select * from cate2 where cate1_code = '$cate1_code' ";
    
$res mysql_query($sql);
    while(
$info=mysql_fetch_array($res)){
        
//print_r($info);
        
$info['category_name'] = iconv("euc-kr","utf-8",$info['category_name']);
        echo 
"<option value='{$info['category_code']}'>{$info['category_name']}</option>";
    }

?>