<body>
<h3>????????????</h3>
<h4>????????????????????</h4>
<?php
include('gaibu_teble01.php');//????(bc)??????
//$fname='fgetcsv_reg_2.txt';//
//addData($fname,$_POST);//
//showAllData($fname);//
//*********????????????******************//
//*********?????????????******************//
$row = 1;
$handle = fopen('fgetcsv_reg_2.txt', "r") or exit('???????????????</body></html>');
echo "<table border=\"1\" cellpadding=\"5\">\n";
echo "<h4>??????????????</h4>\n";
echo "<tr><th>??</th><th>???</th><th>??</th><th>??</th><th>???</th><th>???</th><th>????</th><th>?????</th></tr>\n";
while (($data = fgetcsv_reg($handle)) !== false) {
$_enc_to=mb_internal_encoding();
$_enc_from=mb_detect_order();
$num = count($data);
$row++;
if($data[4] == $city){
echo "<tr>\n";
foreach($data as $dt){ //$dt??????????
echo "<td>" .$dt. "</td>\n";
}
echo "</tr>\n";
}
}
echo "</table>\n";
fclose($handle);
?>
</body>
</html>