【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“chan_cus_1.php”一文,供大家参考学习
<html>
<body>
<?
echo "<H2>
会员专区 <br></H2>";
echo "<h4><p align='center' style='line-height: 0%'>预约维修</p></h4>";
echo "<h5><p align='right' style='line-height: 0%'><a href='.\login.php'> 回会员专区</a></p></h5>";
$link=mysql_connect('localhost','root','123456');
my
sql_select_db('wouc');
if($sex=='男')
$str="update customer set cus_id='".$id."',cus_name='".$name."',cus_sex=1 ,cus_phone='".$phone."',cus_address='".$address."',cus_pwd='".$pwd."' where cus_id='".$sel."';";
if($sex=='女')
$str="update customer set cus_id='".$id."',cus_name='".$name."',cus_sex=2 ,cus_phone='".$phone."',cus_address='".$address."',cus_pwd='".$pwd."' where cus_id='".$sel."';";
$result=
mysql_query($str,$link);
echo "<p align='center' style='line-height: 0%'> 会员信息修改成功!!</p>";
echo "<hr color='pink'>";
echo "<p align='center'><b><font color='#00003f' face='标楷体' size='5'>修改后的信息如下</font></b></p>";
echo "<table border=1 align='center' bordercolor='pink'>";
echo "<p align='center'>";
echo "<tr><td>身分证</td><td>".$id."</td></tr>";
echo "<tr><td></td><td>".$name."</td></tr>";
if ($sex=='男') echo "<tr><td>性别</td><td>男</td></tr>";
if ($sex=='女') echo "<tr><td>性别</td><td>女</td></tr>";
echo "<tr><td>电话</td><td>".$phone."</td></tr>";
echo "<tr><td>地址</td><td>".$address."</td></tr>";
echo "<tr><td>密码</td><td>".$pwd."</td></tr>";
echo "</table>";
mysql_close($link);
?>
</body>
</html>