<?php 
    class Schema {
        private $con;

        public function __construct($con) {
            $this->con = $con;
        }


        public function executeQuery($sql, $types = null, $params = null)
        {
            $stmt = $this->con->prepare($sql);
            $stmt->bind_param($types, ...$params);

            if(!$stmt->execute()) return false;
            return $stmt->get_result();
        }
    }
?>