Добро пожаловать, Гость!
где здесь ошибка? - Страница 1
Помощь мастерам | где здесь ошибка?
DrFaust :
<? $k_post1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` "),0);
$q1 = mysql_query("SELECT * FROM `gallery_foto` ORDER BY `time` DESC LIMIT 6");
while ($foto1 = mysql_fetch_assoc($q1))
{
$gallery1 = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '$foto1[id_gallery]' limit 1"));
$ank1 = get_user($foto1['id_user']);
echo'<div id="movers-row" >';
echo'<div class="cross-link">';
echo'<img src="/foto/foto50/$foto1[id].$foto1[ras]" width="60px" height="40px" class="nav-thumb"/>';
echo'</div>';
echo'</div>';
} ?>
не отображаются фотки,почему?
где здесь ошибка?
31 Окт 2015<? $k_post1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` "),0);
$q1 = mysql_query("SELECT * FROM `gallery_foto` ORDER BY `time` DESC LIMIT 6");
while ($foto1 = mysql_fetch_assoc($q1))
{
$gallery1 = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '$foto1[id_gallery]' limit 1"));
$ank1 = get_user($foto1['id_user']);
echo'<div id="movers-row" >';
echo'<div class="cross-link">';
echo'<img src="/foto/foto50/$foto1[id].$foto1[ras]" width="60px" height="40px" class="nav-thumb"/>';
echo'</div>';
echo'</div>';
} ?>
не отображаются фотки,почему?
Комментарии:
SimptomFD 31 Окт 2015
<?
$q1=mysql_query("SELECT * FROM `gallery_foto` ORDER BY `time` DESC LIMIT 6");
while ($foto1=mysql_fetch_assoc($q1))
{
$gallery1=mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '".$foto1['id_gallery']."' limit 1"));
$ank1=get_user($foto1['id_user']);
echo'<div id="movers-row" >';
echo'<div class="cross-link">';
echo'<img src="/foto/foto50/'.$foto1['id'].'.'.$foto1['ras'].'" width="60" height="40" class="nav-thumb"/>';
echo'</div>';
echo'</div>';
}
?>
<?
$q1=mysql_query("SELECT * FROM `gallery_foto` ORDER BY `time` DESC LIMIT 6");
while ($foto1=mysql_fetch_assoc($q1))
{
$gallery1=mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '".$foto1['id_gallery']."' limit 1"));
$ank1=get_user($foto1['id_user']);
echo'<div id="movers-row" >';
echo'<div class="cross-link">';
echo'<img src="/foto/foto50/'.$foto1['id'].'.'.$foto1['ras'].'" width="60" height="40" class="nav-thumb"/>';
echo'</div>';
echo'</div>';
}
?>