www
/
wwwroot
/
magazinmiorita.be
/
admin
➕ New
📤 Upload
✎ Editing:
clients.php
← Back
<?php include('../includes/inc.config.php'); include('check_session.php'); $clients_results = array(); $clients = $database->execute(" SELECT * FROM `customers` "); while($row = $database->fetch($clients)){ $clients_results[] = $row; } if(isset($_GET['action']) && $_GET['action'] == 'delete'){ $del_user = $database->execute("DELETE FROM customers WHERE `id` = '".$_GET['id']."'"); $del_Tranzaction = $database->execute("DELETE FROM `tranzactions` WHERE `user_id` = '".$_GET['id']."'"); $del_orders = $database->execute("DELETE FROM orders WHERE `user_id` = '".$_GET['id']."'"); if($del_user){ $smarty->assign("type", 'succ'); $smarty->assign("message", 'Client deleted successfully!'); } } $smarty->assign("clients", $clients_results); $smarty->display(END_PATH.'clients.tpl'); ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel