• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameter to database select function

#1
Hello!

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 (
$reset)
{
    
$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('table.id').

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

I dont want select all columns
Reply

#2
SELECT column_name(s) FROM table_name
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.