`

del_ok.php源代码分析

阅读更多
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>

<?php

include("../conn/conn.php");

$id=$_GET[id];

%获取id

$flag=$_GET[flag];

%获取flag

$sql=mysql_query("delete from tb_advertising where id=$id");

%根据id删除相应的广告信息

if($sql){

echo "<script>alert('该信息已经删除!');window.location.href='find_gg.php?

flag=$flag';</script>";

%如果删除成功,则提示用户“信息已经删除”,转到相应的窗口位置

}

else{

echo "<script>alert('该信息删除操作失败!');history.back();</script>";

%否则,提示用户删除失败,返回上一个页面

}

?>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

分享到:
评论

相关推荐

    hr & del_data.sql.rar

    Oracle数据库脚本,包含 del_data.sql、hr_cre.sql、hr_popul.sql 和 hr_main.sql。

    redis_del_key.py

    redis_del_key.py

    SEB_3.0.1.163_SetupBundle.exe

    禁用快捷方式和操作系统功能,例如任务管理器(Ctrl-Alt-Del / Cmd-Alt-Esc),程序切换器(Alt-Tab,Win-Tab / Cmd-Tab),打印屏幕/屏幕截图等,这些功能不可用考试中 防止学生在考试期间上网。 反作弊浏览器

    del_temp.bat删除临时文件

    用于删除系统中的临时文件.挺好用的一个工具.特此共享.

    del_stu.exe

    del_stu.exe

    _del_curterm.rar_The Environment

    Win_global.c: Implement the functions of the win_struct.h interface that exercise global influence on the whole window environment.

    VMware_VMvisor_Installer_7.0.0_16324942.x86_64_DellEMC_Customized_A02.zip

    从VMware Online软件仓库创建ESXi安装ISO或Offline Bundle(标准模式) 从本地ESXi脱机捆绑包(-izip模式)创建ESXi安装ISO或脱机捆绑包 使用来自VMware Online仓库的ESXi补丁包更新本地ESXi脱机捆绑包(-izip -...

    Del_Get.rar_delphi mapgis_mapgis

    mapgis二次开发\delphi实例\Del_Get

    m7_unsigned_073122_131926.7z

    htc one m7官方原版RUU提取制作卡刷包 RUU_M7_UL_K44_SENSE55_MR_HTC_Europe_4.19.401.9_R_Radio_4A.23.3263.28_10.38r.1157.04L_release_353069_signed_2-1 modelid: PN0710000 ...DelCache:1 hbootpreupdate:3

    del_space_para.zip

    本软件是用来删除word文档中多余的空段落的小工具 杀毒软件会报病毒,介意者请不要使用。 本程序用python编写,下载后附上python源码 使用前将要删空格的word文档命名为"123.docx" 将该程序与文档放在同一路径下,...

    电子巡更系统 Delphi源码

    └─源程序 menu.~dfm menu.~pas ABOUT.dcu fpxl_pas.dfm ql_data.dfm menu.pas menu.dfm pass_pas.pas aboutqz.dfm about_pas.dcu add_pen_unit.dfm about_pas.~dfm aboutqz.pas about_pas.~pas ...

    Python代码-__del__方法.py

    ——学习参考资料:仅用于个人学习使用! 本代码仅作学习交流,切勿用于商业用途,否则后果自负。若涉及侵权,请联系,会尽快处理! 未进行详尽测试,请自行调试!

    reg_del_disk.rar_盘符

    用注册表屏蔽盘符,可选择屏蔽指定盘符或全部开放。 可即时生效。

    lr_Del_license.rar

    LoadRunner11删除注册表工具

    大型仿5173游戏交易网整站源码.zip

    │ │ 51dailian_ok.asp │ │ 51need.asp │ │ 51need_add.asp │ │ 51need_next.asp │ │ 51sale.asp │ │ 51sale_need_ok.asp │ │ 51sale_next.asp │ │ 51sale_next1.asp │ │ add_money.asp ...

    data_del.m

    data_del.m

    del_dir.zip_visual c

    delete all directory file...

    del_svn.zip

    用于svn相关文件的删除

    Oracle_SQL学习笔记.doc

    Oracle学习中的关于SQL的一些总结。其中有书中的截取。另外另外就是,对SQL语句的总结。

Global site tag (gtag.js) - Google Analytics