intro_list.php
813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?
include("../include/dbcon2.inc");
$strSQL = "SELECT * FROM intro_user_tbl order by intro_cd";
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL失敗(SELECT)");
exit;
}
$num = pg_numrows($objRec);
?>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE>紹介者一覧画面</TITLE>
</HEAD>
<BODY>
<center>
<table width="240" border="1">
<tr bgcolor="#FFFF33">
<th width="100" scope="col">紹介者コード</th>
<th width="140" scope="col">名前</th>
</tr>
<?
for($i=0;$i<$num;$i++){
$objData = pg_fetch_object($objRec, $i);
?>
<tr>
<td><? echo $objData->intro_cd; ?></td>
<td><? echo $objData->name; ?></td>
</tr>
<?
}
?>
</table>
<center>
</BODY>
</HTML>