mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 16:23:01 +05:30
v1.0.1
This commit is contained in:
15
php/delete.php
Normal file
15
php/delete.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include "config.php";
|
||||
|
||||
if(isset($_GET['id'])){
|
||||
$delete_id = mysqli_real_escape_string($conn, $_GET['id']);
|
||||
$sql = mysqli_query($conn, "DELETE FROM url WHERE shorten_url = '{$delete_id}'");
|
||||
if($sql){
|
||||
echo "success";
|
||||
} else {
|
||||
echo "error";
|
||||
}
|
||||
} else {
|
||||
echo "error";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user