feat: Add user edit modal and user management pages
- Implemented user edit modal in user_edit.html for editing user details. - Updated sidebar.html to correctly reflect active states for Users and Settings. - Created table-07.html for displaying user data in a structured format. - Added settings.html for managing email content and configurations. - Developed users.html for listing all users with functionality to add and edit users.
This commit is contained in:
16
api/test.php
Normal file
16
api/test.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
require "api.php";
|
||||
|
||||
$id = 1;
|
||||
|
||||
$api = new spamhasiApi();
|
||||
|
||||
$db = $api->getDB();
|
||||
|
||||
$sql = "SELECT * FROM users WHERE id = :id";
|
||||
$stmt = $db->prepare($sql);
|
||||
$stmt->execute([':id' => $id]);
|
||||
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
print_r($result);
|
||||
?>
|
||||
Reference in New Issue
Block a user