我要在删除此代码之前先确认消息框,并同时删除标头中的警告 [英] i want confirmation message box before delteting in this code and also remove warning at header

查看:53
本文介绍了我要在删除此代码之前先确认消息框,并同时删除标头中的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?php
require_once("config.php");
$ id = $ _ GET [''emp_id''];
mysql_query(从emp删除,其中emp_id = $ id");
header("location:index_emp.php");
?>

<?php
require_once("config.php");
$id=$_GET[''emp_id''];
mysql_query("delete from emp where emp_id=$id");
header("location:index_emp.php");
?>

推荐答案

id =


_GET [''emp_id''];
mysql_query(从emp删除,其中emp_id =
_GET[''emp_id''];
mysql_query("delete from emp where emp_id=


id");
header("location:index_emp.php");
?>
id");
header("location:index_emp.php");
?>


这篇关于我要在删除此代码之前先确认消息框,并同时删除标头中的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆