- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
if ($check==0)
{
$query = "SELECT id, title, news, author, date FROM news ORDER BY id DESC LIMIT 10";
}else{
$query = "SELECT id, title, news, author, date FROM news ORDER BY id LIMIT 10";
}
$result = mysql_query($query,$db);
$_count=0;
while($row=mysql_fetch_array($result))
{
$_count++;
}
$result = mysql_query($query,$db);
while($row=mysql_fetch_array($result))
{
...
Death 11.03.2010 19:40 # +1
pups 12.03.2010 12:22 # +1
Death 12.03.2010 12:25 # +1.2
успевают запостить несколько новостей за доли секунды :)
pups 12.03.2010 12:27 # 0
mrbig66 12.03.2010 11:03 # 0
Сбрасывает указатель в начало.
Death 12.03.2010 12:29 # 0
$query = "SELECT id, title, news, author, date FROM news ORDER BY id $order LIMIT 10";
$result = mysql_query($query,$db);
$_count = mysql_num_rows($result);
while($row=mysql_fetch_array($result))
{
...
}
guest 13.03.2010 00:29 # +0.2
guest 28.03.2010 22:47 # 0
murz 02.04.2010 12:19 # +0.2