<?php
$scode=$_GET["sc"];
print($scode);
require("calldata.php");
$s1 ="SELECT * FROM tse where code=";
$s2=$scode;
$sql=$s1.$s2;
$result = mysql_query($sql, $link);
$n=1;
while( $row = mysql_fetch_row( $result ) ){
$matrix[$n][1] = $row[0];
$matrix[$n][2] =$row[1];
$matrix[$n][3] =$row[2];
$matrix[$n][4] =$row[3];
$matrix[$n][5] = $row[4];
$matrix[$n][6] =$row[5];
$matrix[$n][7] =$row[6];
$matrix[$n][8] =$row[7];
$matrix[$n][9] =$row[8];
$matrix[$n][10] =$row[9];
$n=$n+1;
}
$nx=$n;
print($nx);
print('<BR>');
for($n=1;$n<$nx;$n++){
$tsecode[$n]=$matrix[$n][1];
$year[$n]=$matrix[$n][2];
$month[$n]=$matrix[$n][3];
$day[$n]=$matrix[$n][4];
$oprice[$n]=$matrix[$n][5];
$hprice[$n]=$matrix[$n][6];
$lprice[$n]=$matrix[$n][7];
$cprice[$n]=$matrix[$n][8];
$volume[$n]=$matrix[$n][9];
$rprice[$n]=$matrix[$n][10];
}
$close_flag = mysql_close($link);
for($n=1;$n<$nx;$n++){
print($month[$n]);
print($day[$n]);
print('<BR>');
}
?>
最終更新:2011年04月09日 11:12