Chủ đề: [Topic] Hỗ trợ, giải đáp lập trình Wap/Web
![]() | ![]() ![]() ![]() 00:11 / 30.03.2016 |

@Admin cho e xin code show ảnh ra home

''.highlight('if ($user_id) {
$tong = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `access` = '4' "), 0);
echo '<div class="phdr"><a href="/users/album.php"><b>Ảnh thành viên</b></a> »</div>';
if ($tong) {
$req0 = mysql_query("SELECT * FROM `cms_album_files` WHERE `access` = '4' ORDER BY rand() DESC LIMIT 1");
$i = 0;
while (($res0 = mysql_fetch_array($req0)) !== FALSE) {
$req00 = mysql_query("SELECT * FROM `cms_album_cat` WHERE `id` = '".$res0['album_id']."' AND `access` = '4' LIMIT 1");
$res00 = mysql_fetch_array($req00);
echo '<div class="newsx" style="text-align:center">
<img src="/files/users/album/'.$res0['user_id'].'/'.$res0['img_name'].'" alt="image" title="image" style="width:176px" />
<br/><a href="/users/album.php?act=show&al='.$res0['album_id'].'&img='.$res0['id'].'&user='.$res0['user_id'].'&view">
<span style="color:red;font-weight:bold;">['.$res00['name'].']</span></a></div>';
++$i;
}
}
}').''
Các thánh hãy cẩn thận