continuing this project
This commit is contained in:
+2
-2
@@ -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
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user