Welcome to the Customer Management System! This project is a web-based application (WebApp) designed to enable admins and agents to conveniently manage customer data. This is the V3 Version. The final version has not been released publicly, as it was used for another project, but all functionalities are working well and can be used.
*Tips Defult Login Details:
Admin - Username:TEST , Password:TEST123
Agent - Username:TEST , Password:TEST123
Developed by: www.dkly.top
- Business Use: For commercial purposes, please contact me via email to request authorization.
- Academic Use: If using this project as a reference or incorporating its code into your assignment, please ensure you properly cite this project and specify the code that you have used to avoid any issues with plagiarism.
If you use this repository, please support it by pressing the star button at the top-right of the page. Your support helps motivate continued development and improvements!
This project was created as part of an educational assignment, and I do not currently plan to continue it as it has already been submitted. However, we welcome educational collaboration!
- Fork this repository and create a new branch (e.g.,
feature/new-feature). - Make your changes and commit them.
- Push your branch and open a pull request.
Thank you for your support and contributions!
- Business Use: For commercial purposes, please contact me via email to request authorization.
- Academic Use: If using this project as a reference or incorporating its code into your assignment, please ensure you properly cite this project and specify the code that you have used to avoid any issues with plagiarism.
To set up and change the MySQL password for the Customer Management System, follow these steps:
Clone the repository to your local machine using the following command:
curl https://github.com/osscv/Customer_Managemenr_System.zipUpload the files to your server or hosting provider. For example, if you are using a BT Panel or a similar web hosting panel, you can upload the files to the desired directory (e.g., /www/wwwroot/calling-system.dkly.top/v3/).
After uploading the repository, navigate to the directory where you uploaded the files. Unzip the files if necessary. You can do this via your hosting panel or via SSH (e.g., using the unzip command):
unzip Customer_Managemenr_System.zipThis will extract the contents into the directory so that the system is ready to use.

In your config.php file, change the password in the $password variable to your new MySQL password. Here's an updated version of the config.php file:
<?php
$servername = "localhost";
$username = "callingsys";
// Change this to your new MySQL password
$password = "NEW_PASSWORD_HERE";
$dbname = "callingsys";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>Replace NEW_PASSWORD_HERE with your new password.
To change the MySQL password for the callingsys user, follow these steps:
Open your terminal and run the following command to log into MySQL (replace root with your MySQL admin user if it's different):
mysql -u root -pEnter your MySQL root password when prompted.
Once you're logged in, run the following SQL command to change the password for the callingsys user:
ALTER USER 'callingsys'@'localhost' IDENTIFIED BY 'NEW_PASSWORD_HERE';Replace NEW_PASSWORD_HERE with the new password you want to set.
To ensure the changes take effect, run the following command:
FLUSH PRIVILEGES;After the password is changed, exit MySQL by running:
EXIT;Once you've updated the password in both MySQL and config.php, test your connection to ensure everything is working correctly. If there are any issues, double-check the credentials in the config.php file and verify that the new password is correct.
This table stores additional records.
CREATE TABLE `additional_records` (
`ID` int NOT NULL,
`Customer_ID` int DEFAULT NULL,
`Important_Remarks` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Package` varchar(150) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Appointment_Date_Time` datetime DEFAULT NULL,
`Agent_Name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Customer_Spoken` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Agent_Remarks` text COLLATE utf8mb4_general_ci,
`Status` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Added_Date_Time` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;This table stores agent details.
CREATE TABLE `agents` (
`ID` int NOT NULL,
`Agent_Name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`Password` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`Remarks` text COLLATE utf8mb4_general_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;INSERT INTO `agents` (`ID`, `Agent_Name`, `Password`, `Remarks`) VALUES
(1, 'Khoo', 'KLY123', 'Admin');This table stores customer details.
CREATE TABLE `customers` (
`ID` int NOT NULL,
`Name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
`HP_Number` varchar(15) COLLATE utf8mb4_general_ci NOT NULL,
`Age` int NOT NULL,
`Nationality` varchar(50) COLLATE utf8mb4_general_ci NOT NULL,
`Language` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`Status` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,
`Agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;INSERT INTO `customers` (`ID`, `Name`, `HP_Number`, `Age`, `Nationality`, `Language`, `Status`, `Agent`) VALUES
(1, 'YSoon', '012348312', 20, 'Malaysia', 'Chinese/Dialect', 'Unknown', 'KLY'),
(2, 'KYean Seo', '0107838203', 40, 'Malaysia', 'Chinese/Dialect', 'Unknown', 'TVB'),
(3, 'Cheng Yi Mun', '01234403', 21, 'Malaysia', 'Chinese/Dialect', 'Unknown', 'TVB'),ALTER TABLE `additional_records`
ADD PRIMARY KEY (`ID`),
ADD KEY `Customer_ID` (`Customer_ID`);ALTER TABLE `agents`
ADD PRIMARY KEY (`ID`),
ADD UNIQUE KEY `Agent_Name` (`Agent_Name`);ALTER TABLE `customers`
ADD PRIMARY KEY (`ID`);Make sure that the tables that require auto-increment for primary keys are configured properly.
-- Example for auto-increment on the `ID` column:
ALTER TABLE `additional_records` MODIFY `ID` int NOT NULL AUTO_INCREMENT;
ALTER TABLE `agents` MODIFY `ID` int NOT NULL AUTO_INCREMENT;
ALTER TABLE `customers` MODIFY `ID` int NOT NULL AUTO_INCREMENT;ALTER TABLE `additional_records`
ADD CONSTRAINT `fk_customer` FOREIGN KEY (`Customer_ID`) REFERENCES `customers` (`ID`) ON DELETE SET NULL;
COMMIT;