include("wghead.inc");
?>
WebGameCoJp
include("left_top.inc");
include("search.inc");
include("left_m.inc");
?>
|
print("■お気に入りウェブゲーム集(リンク版) \n");
print(" \n");
print("\n");
$gid=explode(",",$ulink);//文字列から区分け文字でデータ取り出し
$count=count($gid);//配列要素数
if($count==0) exit;
for ($h=0;$h<$count;$h++) {
$id=$gid[$h];
if($where == "") $where =" game1=".$id;
else $where =$where. " or game1=".$id;
}
$result = pg_exec("select * from game where $where ");
$rows = pg_numrows($result); // 行数を取得
$columns = pg_numfields($result); // 列数を取得
if($rows==0) {echo "error";exit;}
for ($j=0;$j<$count;$j++) {
for ($k=0;$k < $columns;$k++){
$str[$k]=pg_result($result,$j,$k);
}
$kankyo="Windows:IE:$str[22],$str[23]:NN:$str[27],$str[28],Macintosh:IE:$str[32],$str[33]:NN:$str[37],$str[38],PC-UNIX:NN:$str[42],$str[43]";
$HOME="HOME";
print("\n");
print(" | ");
print(" $str[2] | ");
print("$str[5] | ");
print("$str[6] | ");
print("$HOME | ");
print(" \n");
print("\n");
print("| $kankyo | ");
print(" \n");
print("\n");
print("| $str[7] | ");
print(" \n");
print(" | \n");
}
pg_freeresult($result); // 検索結果の解放
pg_close(); // データベースとの接続切断
print(" \n");
?>
|