Changeset 13025


Ignore:
Timestamp:
2007/05/17 21:57:29 (15 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/input_zip_json.php

    r13024 r13025  
    2727// ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈÃͤòȿž¤µ¤»¤ë¡£ 
    2828$arrREV_PREF = array_flip($arrPref); 
    29  
     29$trace =print_r($data_list); 
    3030$state = $arrREV_PREF[$data_list[0]['state']]; 
    3131$city = $data_list[0]['city']; 
     
    4444    echo "{ 'POST' : 'test' , 'GET' : 'test' }"; 
    4545} else { 
    46      
    47     $zipcode = $_GET['zip1'].$_GET['zip2']; 
    48     //$zipcode = mb_convert_kana($zipcode ,"n"); 
    49     //$zipcode = "5920011"; 
    50     $sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?"; 
    51     $data_list = $conn->getAll($sqlse, array($zipcode)); 
    52     $trace =print_r($data_list); 
    5346echo "{'MSG' : '½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£' , 'ZIP' : '$zipcode','DATA_LIST':'$data_list[0]','TRACE':$trace}" ; 
    5447    } 
Note: See TracChangeset for help on using the changeset viewer.