社区(php&&mysql)二
时间:2021-07-01 10:21:17
帮助过:4人阅读
function sdatetime($str){
$str=ereg_replace("-","/",$str);
$str=substr($str,5,strlen($str)-8);
return $str;
}
function reAnum($sid){ //罴莱绞计
$DROOT=getenv('DOCUMENT_ROOT');
include("sql.php3");
$db=MySQL(和PHP搭配之最佳组合)_connect($sql['host'], $sql['user'] , $sql['passwd']);
$qsql="SELECT id from bbs_docs where sid='$sid'";
$rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql);
return MySQL(和PHP搭配之最佳组合)_num_rows($rs);
}
function pagebar($pages) {
global $pgno;
//global $pages;
global $PHP_SELF;
global $aid;
global $OPEN_LIST;
echo "
";
echo ""; if($pgno!=0) { $pu=$pgno-1; echo "[]"; } if($pgno<$pages) { $pd=$pgno+1; echo "[]"; } for($i=0;$i<=$pages;$i++) { if($pgno==$i) { echo ""; echo "[".($i+1)."]"; echo ""; } else { echo ""; echo "[".($i+1)."]"; echo ""; } } echo " | ";
echo ""; echo ""; echo "[祇ゅ彻]"; echo ""; //echo " | "; 上一页 下一页
人气教程排行