Home > Backend Development > PHP Tutorial > 社区(php&&mysql)二

社区(php&&mysql)二

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 14:26:39
Original
1154 people have browsed it
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 "";
  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 "
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template