$sql="select date_format(n_date,'%m/%d/%Y') as n_date, date_format(n_date,'%H:%i') as n_time , news , n_date as date from news order by n_date desc limit $show_news"; } $result=mysql_query($sql,$db); $num_rows=mysql_num_rows($result); if($num_rows!=0) { echo "
} else if (strtoupper($show_date)=="Y" && strtoupper($show_time)!="Y") { $show=$date;
} if (strtoupper($show_date)!="Y" && strtoupper($show_time)=="Y") { $show=$time;
}
$cleannews=(nl2br($news));
$show $cleannews
"; } echo "
";
.php>Return "; }
if ($link) { echo "
$link
";
} Note: The format tag is omitted to make the idea clearer. You can add it
[The copyright of this article is jointly owned by the author and Oso.com. If you need to reprint, please Indicate the author and source]
http://www.bkjia.com/PHPjc/314136.html
www.bkjia.com true
http: //www.bkjia.com/PHPjc/314136.htmlTechArticleWe can use the news system to store news, and we can add, delete and other operations to the news, which reduces the number of people workload, why not experiment. First, create a...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn