我遇到了个大难题
有个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");
?>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号