continuing this project

This commit is contained in:
Darrel Israel
2024-06-05 09:31:33 +08:00
parent dcdbe6715e
commit b91b850139
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ $servername = "localhost";
$username = "root"; $username = "root";
$password = "12345678"; $password = "12345678";
$dbname = "clinic"; $dbname = "clinic";
$portnum = "3306"; $portnum = "3307";
$conn = mysqli_connect($servername, $username, $password, $dbname, $portnum); $conn = mysqli_connect($servername, $username, $password, $dbname, $portnum);
@@ -11,4 +11,4 @@ $conn = mysqli_connect($servername, $username, $password, $dbname, $portnum);
if (!$conn) { if (!$conn) {
die("Connection failed: " . mysqli_connect_error()); die("Connection failed: " . mysqli_connect_error());
} }
//echo "Connected successfully"; // echo "Connected successfully";
+2 -2
View File
@@ -1,10 +1,10 @@
<?php <?php
require 'dbconn.php'; require 'dbconn.php';
$plainPassword = "doc2"; // Replace with the desired password $plainPassword = "admin"; // Replace with the desired password
$hashedPassword = password_hash($plainPassword, PASSWORD_DEFAULT); $hashedPassword = password_hash($plainPassword, PASSWORD_DEFAULT);
$username = "doc2"; // Replace with the username $username = "admin"; // Replace with the username
// Set the default value for tbluserroles_roleid to 1 // Set the default value for tbluserroles_roleid to 1
$defaultRoleId = 1; $defaultRoleId = 1;