[請益] 新手請教QQ
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body
<form action="radio.php" method="post">
<input type="submit" value="刪除">
</form>
</body>
</html>
<?php
@$rr[$n]=$_POST['rr'][$n];
mysql_connect這邊沒問題
mysql_select_db這邊沒問題
mysql_query("SET NAMES utf8");
mysql_query("DELETE customer where customer_ID='$rr[$n]'");
$result= mysql_query("SELECT customer_ID,customer_Name,customer_addres FROM
customer ");
@$z= "<form action='radio.php' method='post'>"."<table border>\n";
while ($ccc= mysql_fetch_array($result))
{
@$z.="<tr>"."<td>"."<input type='radio' name='rr'
value='".$ccc['customer_ID']."'>"."</td>".
"<td>".@$ccc[customer_ID]."\n"."</td>".
"<td>".@$ccc[customer_Name]."\n"."</td>".
"<td>".@$ccc[customer_addres]."</br>"."</td>"."</tr>";
}
@$z.="</table>"."</form>";
echo $z;
這個是我做的系統管理要刪除客戶資料......
讓每筆表單前有一個單選鈕可以選
應該是傳遞那邊有問題,刪不了
請問一下哪邊要改
不要罵我QQ
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.27.30.57
→
06/09 09:18, , 1F
06/09 09:18, 1F
→
06/09 09:50, , 2F
06/09 09:50, 2F
→
06/09 09:51, , 3F
06/09 09:51, 3F
→
06/09 09:52, , 4F
06/09 09:52, 4F
→
06/09 09:52, , 5F
06/09 09:52, 5F
→
06/09 09:53, , 6F
06/09 09:53, 6F
→
06/09 09:53, , 7F
06/09 09:53, 7F
→
06/09 10:36, , 8F
06/09 10:36, 8F
→
06/09 10:56, , 9F
06/09 10:56, 9F
→
06/09 10:57, , 10F
06/09 10:57, 10F