我遇到了个大难题
有个OA系统,界面有个修改,删除信息的功能,如下:
------------------------------------------------
| 生产厂家名称 | 操作 |
------------------------------------------------
| 01 | 修改 删除 |
------------------------------------------------
| 02 | 修改 删除 |
------------------------------------------------
| 03 | 修改 删除 |
------------------------------------------------
| 增加 | 返回 |
-----------------------------------------------
当我增加生产厂家时就可以删除,但原来在上面的01,02,03就无法删除,
下面是我的一部分代码:
delete.php
------------------------------------
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$connection=OpenConnection();$query="delete from ba_Manufacturer where Manufacturer=$Manufacturer";exequery($connection,$query);?> <script language="javascript"> alert("<?=$Old_Manufacturer?>"); </script>$query="delete from ba_goods_Manufacturer where Manufacturer=$Manufacturer";exequery($connection,$query);header("location: list.php?Manufacturer=$Old_Manufacturer&Image_name=$Image_name&Begdt=$Begdt&Enddt=$Enddt&PAGE_START=$PAGE_START");
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$connection=OpenConnection();$query="delete from ba_goods_Manufacturer where noid='$id'";exequery($connection,$query);header("location: show.php?Manufacturer=$Manufacturer&Old_Manufacturer=$Old_Manufacturer&Image_name=$Image_name&Begdt=$Begdt&Enddt=$Enddt&PAGE_START=$PAGE_START");?>