fixing the old project errors
This commit is contained in:
1 parent
34753111ed
commit
4ff0c03c62
23 files changed
+117
-278
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user