Просмотр поста

.
Guccifer

vot esho bidlokod eto toje nepolno rabotaet

$req = mysql_query("SELECT * FROM `uff_news` WHERE `who`='2' ORDER BY `time` LIMIT 1");
 
 while ($row = mysql_fetch_array($req))
 {
  
  echo '<div class="phdr"><b>' .news_time($row['time']). '</b></div>';
  $result = mysql_query("SELECT * FROM `uff_news` WHERE `who`='2' ORDER BY `time` DESC LIMIT 100");
 $i = 0; 
$n = $start;
  while ($res = mysql_fetch_array($result))
  {
$n = $n+1;
   echo '<div class="menu"><span class="time">'.date("H:i", $res['time']).'</span> <a href="?id='.$res['id'].'">'.$res['title'].'</a></div>';
  }
 
 }


mne nujno primerno tak:
<div class="phdr">1-june</div>
<div class="menu">News 1</div>
<div class="menu">News 2</div>
<div class="menu">News 3</div>
I eshi novosti s etogo dena 1 iyun
<div class="phdr">31-may</div>
<div class="menu">News 1</div>
<div class="menu">News 2</div>
<div class="menu">News 3</div>
I eshi novosti s etogo dena 31-may