Добро пожаловать, Гость!
Подскажите пажалуста! - Страница 1
Общие вопросы | Подскажите пажалуста!


Подскажите пажалуста!
16 Дек 2013Мне нужно исправить это:
<?
$q = mysql_query("SELECT * FROM `obmennik_files` WHERE `id_dir` != '$my_dir[id]' AND ORDER BY `time` DESC LIMIT $start, $set[p_str]");
?>
Заранее спасибо!
Комментарии:


Автор темы
Genocide, ну смотри на код, тут везде все правильно кроме той строки!


Автор темы
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$my_dir = mysql_fetch_assoc(mysql_query("SELECT * FROM `obmennik_dir` WHERE `my` = '1' LIMIT 1"));
$k_post= mysql_result(mysql_query("SELECT COUNT(*) FROM `obmennik_files` WHERE `id_dir` != '$my_dir[id]' AND `time` > '".$ftime."'",$db), 0);
$set['title']='Новые файлы!';
include_once '../sys/inc/thead.php';
title();
aut();
?>


Автор темы
<?
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q = mysql_query("SELECT * FROM `obmennik_files` ORDER BY `time` DESC LIMIT $start, $set[p_str]");
if ($k_post == 0){
echo "<div class='mess'>Пока не кто не загрузил новых файлов!</div>";
}else{
while ($post = mysql_fetch_array($q))
{
$ras=$post['ras'];
$file=H."sys/obmen/files/$post[id].dat";
$name=$post['name'];
$size=$post['size'];
?>


Автор темы
<?
/*-----------зебра-----------*/
if ($num==0){
echo " <div class='nav1'>";
$num=1;
}elseif ($num==1){
echo " <div class='nav2'>";
$num=0;
}
/*---------------------------*/
?>


Автор темы
<?
include 'inc/icon14.php';
$dir = mysql_fetch_array(mysql_query("SELECT * FROM `obmennik_dir` WHERE `id` = '$post[id_dir]' LIMIT 1"));
if ($set['echo_rassh']==1)$ras=".$post[ras]";else $ras=NULL;
echo "<a href='/obmen$dir[dir]$post[id].$post[ras]?showinfo'>$post[name]$ras</a><br />";
include 'inc/opis.php';
echo'</div>';
}
}
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
include_once '../sys/inc/tfoot.php';
?>