$freq = mysql_query("SELECT * FROM `cms_forum_files` WHERE `post` = '" . $res['id'] . "' LIMIT 10");
if (mysql_num_rows($freq) > 0) {
while ($fres = mysql_fetch_assoc($freq)) {
$fls = round(@filesize('../files/forum/attach/' . $fres['filename']) / 1024, 2);
$att_ext = strtolower(functions::format('./files/forum/attach/' . $fres['filename']));
$pic_ext = array(
'gif',
'jpg',
'jpeg',
'png'
);
$req43=mysql_query("SELECT `postforum`, `id` FROM `users` WHERE (id='$user_id') ");
$arr56=mysql_fetch_array($req43);
$total_spent = 2;
if (in_array($att_ext, $pic_ext)) {
echo '<center>
<table class="menu" width="550" border="1"><tr>
';
echo ' <a href="/forum/index.php?act=file&id=' . $fres['id'] . '">';
echo '<img src="/forum/thumbinal.php?file=' . (urlencode($fres['filename'])) . '" alt="' . $lng_forum['click_to_view'] . '" /></a><tr>';
echo'</td></tr></table></center>';
}
$file_id = $fres['id'];
$i;
}
}
how to creat this code image slideshow