CodeIgniter Forums

Full Version: Parameter to database select function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

In my opinion, function select must have a parameter for reset last select data

PHP Code:
public function select($select '*'bool $escape nullbool $reset false)
if (
$this->QBSelect = [];
$this->QBNoEscape = [];

Now in my code one function with join use $this->select('table.*'), so that not include addational table. After I use $this->select('').

After in SQL:
SELECT table.*, FROM ...

I dont want select all columns
SELECT column_name(s) FROM table_name