Changeset 13014


Ignore:
Timestamp:
2007/05/17 21:42:34 (17 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

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

    r13012 r13014  
    4444    echo "{ 'POST' : 'test' , 'GET' : 'test' }"; 
    4545} else { 
    46     $zip = $_GET['zip01'].$_GET['zip02']; 
    47 echo "{'MSG' : '½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£' , 'ZIP' : '$zip','DATA_LIST':'$data_list[0]'}" ; 
     46     
     47    $zipcode = $_GET['zip1'].$_GET['zip2']; 
     48    $zipcode = mb_convert_kana($zipcode ,"n"); 
     49    $sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?"; 
     50    $data_list = $conn->getAll($sqlse, array($zipcode)); 
     51echo "{'MSG' : '½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£' , 'ZIP' : '$zipcode','DATA_LIST':'$data_list[0]'}" ; 
    4852    } 
    4953} 
Note: See TracChangeset for help on using the changeset viewer.