mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-20 00:29:34 +05:30
v2.0.0
This commit is contained in:
15
htdocs/core/delete.php
Executable file
15
htdocs/core/delete.php
Executable 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