我要删除一条数据
<?php
$cha=$_POST["cha"];
$id = mysql_connect("localhost","root","root");
mysql_select_db("login", $id);
$result = mysql_query ("SELECT name,s_name,context,pic_name FROM
u_gg",$id);
print "<table border='1'>";
print "<th align = 'center'>广告名字</th>";
print "<th align = 'center'>商家姓名</th>";
print "<th align = 'center'>广告内容</th>";
print "<th align = 'center'>广告图片</th>";
while ($row = mysql_fetch_array($result))
{
print "<tr> \n";
print "<td align = 'center'>{$row["name"]}</td>";
print "<td align = 'center'>{$row["s_name"]}</td>";
print "<td align = 'center'>{$row["context"]}</td>";
print "<td align = 'center'> <img src=".$row["pic_name"]."</td> <br> </n>";
print "</tr> \n";
}
$chaxun=mysql_query("DELETe * FROM u_gg WHERe name='$cha'",$id) ;
print "</table> \n";
?>
但是删除不了记录的?那里出错了?