Home > Backend Development > PHP Tutorial > PHP+DBM的同学录程序(5)_php基础

PHP+DBM的同学录程序(5)_php基础

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-17 09:46:20
Original
837 people have browsed it

10、会员信息显示文件show.php3

if($login){
require("common.php3");
if(!isset($id))error("怎么没有填写用户的ID?");
else{
  $id=chop($id);
  $dbm=dbmopen("class","r");
  if(!dbmexists($dbm,$id))error("没有这个用户ID!");
  else{
    $data=dbmfetch($dbm,$id);
        $info=explode("|!:!|",$data);
        $name=$info[0];        $nickname=$info[1];        $mail=$info[2];        $home=$info[3];        $oicq=$info[4];
        $icq=$info[5]; $add=$info[6]; $tel=$info[7]; $birth=$info[8]; $job=$info[9];
        $intro=$info[10]; $sex=$info[11];
  }
  dbmclose($dbm);
}
?>

查 看 <?echo $name?> 的 资 料

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