php mysql查询数据
程序员文章站
2022-05-08 09:50:00
...
"; while ($row = mysql_fetch_array($result)) { echo " 编号 用户名称 性别 年龄 注册时间 详细信息 "; //开源代码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[id] . " " . $row[username] . " " . $row[gender] . " " . $row[age] . " " . $row[regdate] . " 查看
用户名:" . $row[username] . "
性别:" . $row[gender] . "
年龄:" . $row[age] . "
注册时间:" . $row['regdate']; echo "
继续查询"; } } //end if