01.
<?php
02.
include
(
"connect/connect.php"
);
03.
04.
$sql
=
"SELECT * FROM tb_news where id_news=$id_news"
;
05.
06.
$intRow
=0;
07.
$query
= mysql_query(
$sql
);
08.
While(
$resultPic
= mysql_fetch_array(
$query
))
09.
10.
$pic
=
$resultPic
[
"pic1"
];
11.
12.
{
13.
$intRows
++
14.
15.
?>
16.
<table width=
"99"
border=
"1"
>
17.
<tr>
18.
<td
class
=
"lista"
valign=
"top"
width=
"22"
>
19.
20.
<div align=
"center"
><a target=
"_blank"
href=
"news_show.php?id_news=<?=$resultPic["
id_news
"];?>&id_news=<?=$resultPic["
id_news
"];?>"
><img src=
"images/new_large/<? echo"
$pic
"?>"
width=
"200"
height=
"150"
border=
"0"
/></a></div></td>
21.
</tr>
22.
23.
<?php
24.
25.
}
26.
?>
27.
</table>