");
for($i=0; $i<$num; $i++)
while($row=mysql_fetch_array($rs))
{
if($k++ & 1)
{
print("");
print("| ".mb_convert_encoding($row[$i],"SJIS","EUC-JP")." | ");
for($j=1;$j<$num;$j++)
{
print("| ".mb_convert_encoding($row[$j],"SJIS","EUC-JP")." | ");
}
print("
| ");
}
else
{
print("");
print("| ".mb_convert_encoding($row[$i],"SJIS","EUC-JP")." | ");
for($j=1;$j<$num;$j++)
{
print("| ".mb_convert_encoding($row[$j],"SJIS","EUC-JP")." | ");
}
print("
| ");
}
}
print("
");
mysql_free_result($rs);
mysql_close($dbHandle);
//--- 終了 --->
?>