public function select($table, $where = '', $fields = '*', $order = '', $limit = null, $offset = '')
    {
        $query = "SELECT $fields FROM $table "
                 .($where ? " WHERE $where " : '')
                 .($order ? " ORDER BY $order " : '')
                 .($limit ? " LIMIT $limit " : '')
                 .(($offset && $limit ? " OFFSET $offset " : ''));
                 
        $this->prepare($query);
    }
public function select($table, $where = '', $fields = '*', $order = '', $limit = null, $offset = '')
    {
        $query = "SELECT $fields FROM $table "
                 .($where ? " WHERE $where " : '')
                 .($order ? " ORDER BY $order " : '')
                 .($limit ? " LIMIT $limit " : '')
                 .(($offset && $limit ? " OFFSET $offset " : ''));
                 
        $this->prepare($query);
    }
public function select ( $ table , $ where = '' , $ fields = '*' , $ order = '' , $ limit = null , $ offset = '' ) { $ query = "SELECT $fields FROM $table " . ( $ where ? " WHERE $where " : '' ) . ( $ order ? " ORDER BY $order " : '' ) . ( $ limit ? " LIMIT $limit " : '' ) . ( ( $ offset && $ limit ? " OFFSET $offset " : '' ) ) ; $ this -> prepare ( $ query ) ; }
The select method allows to to specify different inputs to enable
you to run various select queries.
The select method allows to to specify different inputs to enable you to run various select queries .