社区(php&&mysql)二
程序员文章站
2022-06-02 13:26:35
...
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 "";
$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 "
"; if($pgno!=0) { $pu=$pgno-1; echo "[]"; } if($pgno $pd=$pgno+1; echo "[]"; } for($i=0;$i if($pgno==$i) { echo ""; echo "[".($i+1)."]"; echo ""; } else { echo ""; echo "[".($i+1)."]"; echo ""; } } echo " | "; "; echo ""; echo "[祇ゅ彻]"; echo ""; //echo " | ";
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论