implemented login and hashed password

This commit is contained in:
CodeServer
2021-07-30 11:11:47 +01:00
parent cad63c5238
commit 8f34787d50
15 changed files with 435 additions and 114 deletions
+4 -3
View File
@@ -1,9 +1,9 @@
<?php
function connectMysql()
{
$servername = "localhost";
$username = "root"; // your username
$password = "root"; //your password
$servername = "testhost";
$username = "myadmin"; // your username
$password = "myadmin"; //your password
$database = "cpsc2030_project";
$conn = new mysqli($servername, $username, $password, $database);
// Check connection
@@ -49,4 +49,5 @@ function getProducts($P_ID,$conn){
?>