fixing the old project errors

This commit is contained in:
Anas Rashid committed 2026-04-29 00:42:13 +02:00
1 parent 34753111ed
commit 4ff0c03c62
23 files changed
+117 -278

No files matched your search

+3 -5
View File
@@ -13,15 +13,13 @@ class DataAccessHelper {
}
$rs[] = $row;
}
$conn->close();
return $rs;
}
else{
echo $conn->error;
$conn->close();
return false;
}
$conn->close();
return false;
}
public static function insertQuery($sql){
@@ -54,7 +52,7 @@ class DataAccessHelper {
private static function getConnection(){
$servername = "localhost";
$username = "root";
$password = "";
$password = "Admin@1234";
$dbname = "photoshare";
$conn = new mysqli($servername, $username, $password, $dbname);