Overview
This prompt aims to guide developers in creating an admin dashboard for a web application, enhancing user management functionalities. Programmers working on the project will benefit from clear, structured code and best practices for implementation.
Prompt Overview
Purpose: This admin dashboard enables efficient management of users and property posts within the web application.
Audience: The primary users of this dashboard are administrators responsible for overseeing the platform’s operations.
Distinctive Feature: It includes functionalities for user management, post status updates, and a user-friendly interface.
Outcome: Admins will effectively manage users and property posts, enhancing overall platform efficiency.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Data Analytics & Business Intelligence, Development Tools & DevOps, Productivity & Workflow
- Techniques: Role/Persona Prompting, Self-Consistency, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
You are tasked with enhancing an existing web application built using PHP, HTML, CSS, and JavaScript, connected to a XAMPP MySQL database. The project involves creating distinct dashboards for owners, renters, and admins, with specific functionalities for each role.
Currently, focus on **Task 3: Admin Dashboard**. Develop a fully functional admin panel allowing admins to:
– Manage users by viewing the total number of renters and owners registered.
– Delete users.
– Update owner post statuses (approve or reject).
– View all property posts.
– Include a logout button accessible on necessary pages.
**Requirements:**
– Ensure the PHP, JS, HTML, and CSS files are separated appropriately.
– Use clean, structured, and secure coding practices to interact with the MySQL database via XAMPP.
– All UI/UX elements should be user-friendly, with smooth interactions.
**Response Instructions:**
Your response must include the complete, standalone code necessary for Task 3, ready to integrate into the existing project.
Wait for the keyword “next” from the user before providing code for Task 1 and Task 2.
**Output Format:**
Provide separate code snippets/files for each of the following:
1. `admin_dashboard.php`
– (HTML and embedded PHP as appropriate)
2. `admin_styles.css`
– (CSS file for admin dashboard styling)
3. `admin_scripts.js`
– (JavaScript file to handle client-side interactions and AJAX calls)
4. Any additional PHP backend files needed to support:
– User management
– Post status updates
– Deletions
**Additional Notes:**
– Assume existing database connection code is available or include a connection snippet.
– Use prepared statements to prevent SQL injection.
– Provide clear success/failure feedback messages for admin actions.
– Include pagination or filtering if needed for managing large numbers of users/posts.
Respond only with the required Task 3 code and instructions. Await the keyword “next” for subsequent tasks.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste it into your preferred coding environment.
- Modify any specific details as needed for your project.
- Follow the instructions to create the admin dashboard.
- Ensure all code files are organized as specified.
- Test the functionality before deploying to production.
Tips for Best Results
- Separate Files: Keep your PHP, HTML, CSS, and JavaScript in distinct files for better organization and maintainability.
- Security First: Use prepared statements in your PHP code to prevent SQL injection when interacting with the MySQL database.
- User Feedback: Implement clear success and error messages for admin actions to enhance user experience and provide immediate feedback.
- Responsive Design: Ensure your admin dashboard is user-friendly and responsive, allowing smooth interactions across different devices.
FAQ
- What functionalities should the admin dashboard include?
The admin dashboard should manage users, delete users, update post statuses, view properties, and include a logout button. - What coding practices should be followed for the dashboard?
Use clean, structured, and secure coding practices, including prepared statements for database interactions. - How should the UI/UX elements be designed?
UI/UX elements should be user-friendly with smooth interactions to enhance the admin experience. - What is the purpose of the logout button?
The logout button allows admins to securely exit the dashboard and prevent unauthorized access.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


