01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com</title>
04.
<meta http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
/>
05.
</head>
06.
<body>
07.
<?php
08.
include
(
'connect.php'
);
09.
$strSQL
=
"SELECT * FROM stories"
;
10.
$objQuery
= mysql_query(
$strSQL
)
or
die
(mysql_error());
11.
?>
12.
<table width=
"600"
border=
"1"
>
13.
<tr>
14.
<th width=
"100"
> <div align=
"center"
>NewsID </div></th>
15.
<th width=
"500"
> <div align=
"center"
>Subject </div></th>
16.
</tr>
17.
<?php
18.
while
(
$objResult
= mysql_fetch_array(
$objQuery
))
19.
{
20.
?>
21.
<tr>
22.
<td><div align=
"center"
><?php
echo
$objResult
[
"id"
];?></div></td>
23.
<td><a href=
"/<?php echo $objResult["
id
"];?>/<?php echo $objResult["
link
"];?>.html"
><?php
echo
$objResult
[
"topics"
];?></a></td>
24.
</tr>
25.
<?php
26.
}
27.
?>
28.
</table>
29.
</body>
30.
</html>