This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function delteteProCatById($id) { | |
$id = mysqli_real_escape_string($this->db->link, $id); | |
// First, get the image path to delete the file | |
$query = "SELECT catImg FROM tb_procat WHERE id = '$id'"; | |
$getData = $this->db->select($query); | |
if ($getData && $getData->num_rows > 0) { | |
$imgData = $getData->fetch_assoc(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$serverName = "localhost"; | |
$userName = "root"; | |
$password = ""; | |
$dbName = "bank_account"; | |
$conn = new mysqli($serverName, $userName, $password, $dbName); | |
if ($conn->connect_error) { | |
die("Connection failed: " . $conn->connect_error); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace DAL; | |
class DBCSV{ | |
private $fileName=""; | |
private $separation = ","; | |
protected $records = []; | |
protected $headerFields = []; | |
public function __construct($fileName){ |