|
|
|
|
| | |
|
$sql="SELECT zagolovok, text, EXTRACT(DAY FROM data) as day, EXTRACT(MONTH FROM data) as month, EXTRACT(YEAR FROM data) as year, id FROM art_news ORDER BY data DESC LIMIT 6";
$res=mysql_query($sql) or die(mysql_error());
while ($news=mysql_fetch_assoc($res))
{
if (strlen($news['month'])==1){$news['month']="0".$news['month'];}
if (strlen($news['day'])==1){$news['day']="0".$news['day'];}
echo"".$news['day']." ".$month[$news['month']]." ".$news['year']." | ".$news['zagolovok']." | Читать далее>>> |
| ";
}
?>
|
|
|
|
|
|
|
|