Интересно
if ($_REQUEST["record2"]!="")
{
$query = "SELECT * FROM auto_allpage WHERE Id='".intval($_REQUEST["record2"])."'";
mysql_query("SET NAMES UTF8");
$res = mysql_query($query);
$row = @mysql_fetch_array($res);
$date = strtotime($row["datecreate"]);
print "
".date('m/d/Y',$date)."
";
print "
".$row["name"]."
";
print "
".$row["textpage"]."
";
}
else
{
$query = "SELECT * FROM auto_allpage ORDER BY datecreate DESC LIMIT 20";
mysql_query("SET NAMES UTF8");
$res = mysql_query($query);
while ($row = @mysql_fetch_array($res))
{
$date = strtotime($row["datecreate"]);
print "
".date('m/d/Y',$date)."
";
print "
";
PRINT strip_tags($row["descriptiontext"]);
//print "
".$row["descriptiontext"]."
";
print "
";
//print "
".$row["descriptiontext"]."
";
}
}
?>