php留言板更新代码

php留言板更新代码

php留言板后台管理-查看代码

meta content=text/html; charset=utf-8 /?php$lianjie =
mysql_connect(localhost,root,xiaolie卡塔尔国 or die(连接退步卡塔尔;mysql_query(set
names
utf8);if($lianjie){mysql_select_db(xiaolie);if(!$_GET){$xuanbiao =
select * from zhuce;$fasong = mysql_query($xuanbiao) or
die(mysql_error(卡塔尔国卡塔尔;echo table
border=1trtd数码/tdtd客商名称/tdtd性别/tdtd年龄/tdtd注册时间/tdtd操作/td/tr;while($nr=mysql_fetch_array($fasong)){echo
trtd.$nr[id]./tdtd.$nr[name]./tdtd.$nr[xingbie]./tdtd.$nr[nianling]./tdtd.$nr[zc_shijian]./tdtda
href=gx_my.php?id=.$nr[id].编辑/a/td/tr;}echo
/table;}else{if(!$_POST){$xianid = select * from zhuce where
id=.$_GET[id];$fasong = mysql_query($xianid) or
die(mysql_error());$nr = mysql_fetch_array($fasong);? form
method=post action=gx_my.php?id=?php echo $_GET[id];? ?php echo
$nr[id].br;? input type=hidden name=id value=?php echo $nr[id];?
姓名input type=text name=name value=?php echo $nr[name];?br 性别input
type=text name=xingbie value=?php echo $nr[xingbie];?br 年龄input
type=text name=nianling value=?php echo $nr[nianling];?br
注册时间input type=text name=zc_shijian value=?php echo
$nr[zc_shijian];?br input type=submit name=ok value=提交 /form
?php}else{$gx = update zhuce set
name=’.$_POST[name].’,xingbie=’.$_POST[xingbie].’,nianling=’.$_POST[nianling].’,zc_shijian=’.$_POST[zc_shijian].’
where id=’.$_POST[id].’;$fasong = mysql_query($gx卡塔尔(قطر‎;if($fasong卡塔尔(قطر‎{echo
记录已经成功改善bra href=gx_my.php继续改良记录/a;}else{echo
记录修正战败bra href=gx_my.php?id=.$_POST[id].返回/a;}}}}

meta content=text/html; charset=utf-8 /?php$lianjie =
mysql_connect(localhost,root,xiaolieState of Qatar or die(连接失败卡塔尔;mysql_query(set
names
utf8);if($lianjie){mysql_select_db(xiaolie);if(!@$_GET[id]){$jieguo
= select * from zhuce;$fasong = mysql_query($jieguo) or
die(mysql_error(State of QatarState of Qatar;echo table
border=1trtd号码/tdtd客商名称/tdtd性别/tdtd年龄/tdtd注册时间/tdtd详细信息/td/tr;while($nr=mysql_fetch_array($fasong)){echo
trtd.$nr[id]./tdtd.$nr[name]./tdtd.$nr[xingbie]./tdtd.$nr[nianling]./tdtd.$nr[zc_shijian]./tdtda
href=ck_my.php?id=.$nr[id].查看/a/td/tr;}echo /table;}else{$jieguo =
select * from zhuce where id=.$_GET[id];$fasong =
mysql_query($jieguo);$nr = mysql_fetch_array($fasong);echo
编号:.$nr[id].br客户名称:.$nr[name].br性别:.$nr[xingbie].br年龄:.$nr[nianling].br注册时间:.$nr[zc_shijian].br;echo
brbra href=ck_my.php继续查询/a;}}

?

发表评论

电子邮件地址不会被公开。 必填项已用*标注