php留言板更新代码

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){$a =
$_GET[id];$sc = delete from zhuce where id=$a;$fasong =
mysql_query($sc) or die(mysql_error(卡塔尔国卡塔尔;if($fasongState of Qatarecho
记录已经成功删除a href=sc_my.php继续删除记录/a;elseecho 删除记录失败bra
href=sc_my.php返回/a;}else{$fasong = mysql_query(select * from zhuce)
or die(mysql_error(State 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=sc_my.php?id=.$nr[id].删除/a/td/tr;}echo /table;}}?

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,xiaolie卡塔尔(قطر‎ or die(连接退步State of Qatar;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(卡塔尔(قطر‎卡塔尔;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;}}

?

You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图