Home >php教程 >php手册 >php+mysql中排行榜的制作源码

php+mysql中排行榜的制作源码

WBOY
WBOYOriginal
2016-06-13 10:23:301454browse

//排行榜的制作完整源代码
//其中top XX 可以自己定!输入多少就是top多少




if ($top){
$query="select count(*) as total from data";
$result=mysql_query($query);
$message_count=mysql_result($result,0,"total");
if ($key>$message_count) {$key=$message_count;}

?>


热门新闻访问排行榜




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