【php开源代码栏目提醒】:网学会员php开源代码为您提供AgentsDel.php参考,解决您在AgentsDel.php学习中工作中的难题,参考学习。
<meta name="generator" content="Namo WebEditor(Trial)">
<?
if($_SESSION[Admin]<="2"){echo("<meta http-equiv=refresh content=\"0;URL=Login.php\"></meta>");}
else
{
include_once("../Config/Config.php");
include_once("../Config/Connect.php");
$sql="select Stock_id from Stock where Agents_id='$_GET[Agents_id]'";
$result=mysql_query($sql,$link);
$nums=
mysql_num_rows($result);
if(!$nums){
$
sql="delete from Agents where Agents_id='$_GET[Agents_id]'";
if(mysql_query($sql,$link))
{
echo("Θ!!<br>------");
echo("<meta http-equiv=refresh content=\"3;URL=../admin.php?about=Agents\"></meta>");
}
}else{
echo("安得鲁络绎苇箔之歌!!<br>安得鲁<br>---外观面版测试---");
echo("<meta http-equiv=refresh content=\"3;URL=../admin.php?about=Agents\"></meta>");
}
}
?>