���� JFIF fdasasfas213sdaf
Server IP : 147.79.69.177 / Your IP : 216.73.216.200 Web Server : LiteSpeed System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64 User : u479334040 ( 479334040) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u479334040/domains/saumasale.in/public_html/includes/ |
Upload File : |
<?php require_once("config.php"); class database{ private $db, $_result, $affected_rows, $insert; public function __construct(){ $this->db = mysqli_connect(DBHOST,DBUSER,DBPASS,DBNAME); } public function disconnect(){ mysqli_close($this->db); } public function query($sql){ $this->_result = $this->db->query($sql) or die(mysqli_error($this->db)); $this->affected_rows = $this->db->affected_rows; $this->insert = $this->db->insert_id; } public function affected_rows(){ return $this->affected_rows; } public function rows(){ $rows = array(); for($x=0;$x<$this->affected_rows();$x++){ $rows[] = $this->_result->fetch_assoc(); } return $rows; } public function inserted(){ return $this->insert; } public function sanitize($data){ return $this->db->real_escape_string($data); } } ?>