Phprentals > Admin / Dusr.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Phprentals

Download:
phprentals.zip

Category:
Classified Ads

Archive Content:

Phprentals

Phprentals > Admin

Phprentals > Html

Phprentals > Images

Phprentals > Includes

Phprentals

Phprentals > Landlords

Phprentals > Members

Content:

Dusr.php:


<?php
include("".$_SERVER['DOCUMENT_ROOT']."/phprentals/includes/accesscontrol.php");
include(
"".$_SERVER['DOCUMENT_ROOT']."/phprentals/includes/config.php");

$llid addslashes($_POST['llid']);

$sql mysql_query("SELECT * FROM users WHERE llid='$llid' ");
if (
$row mysql_fetch_array($sql)) {

$notfound $row["email"];
    
mysql_query("DELETE FROM users WHERE llid = '$llid'");
mysql_query("DELETE FROM landlords WHERE lid = '$llid'");
echo 
"User Successfully Deleted";
    }
    if (!
$notfound){
echo 
"<B>Landlord not deleted.</B><P>The Landlord you submitted does not match anything in the database.";
 } 
?>


Other Classified Ads Scripts:

  • Phprentals
WebMaster Resources Home

©RingsWorld.com