PHP头条
热点:

phpmysql查询数据


 
 
 编号 
 用户名称 
 性别 
 年龄 
 注册时间 
 详细信息 
";
        while ($row = mysql_fetch_array($result)) {
            echo " 
 " . $row[id] . " 
 " . $row[username] . " 
 " . $row[gender] . " 
 " . $row[age] . " 
 " . $row[regdate] . " 
 查看 
"; //开源代码phprm.com
            
        }
        echo "";
    } else {
        //显示指定用户的详细信息
        $sql = "select * from userinfo where id=" . $_GET[id];
        $result = mysql_query($sql);
        $row = mysql_fetch_array($result);
        echo "编号:" . $row[id] . "
用户名:" . $row[username] . "
性别:" . $row[gender] . "
年龄:" . $row[age] . "
注册时间:" . $row['regdate']; echo "


继续查询"; } } //end if

www.phpzy.comtrue/php/3509.htmlTechArticlephpmysql查询数据 编号 用户名称 性别 年龄 注册时间 详细信息 "; while ($row = mysql_fetch_array($result)) { echo " " . $row[id] . " " . $row[username] . " " . $row[gender] . " " . $row[age] . " " . $row[regdate] . " 查看...

相关文章

相关频道:

PHP之友评论

今天推荐