• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
insertID()

#4
Try this, it's working for me

PHP Code:
protected $table 'Clients';

public function 
__construct()
{
      
$this->dbConn = \Config\Database::connect();
      
$this->managers $this->dbConn->table($this->table);

public function 
insertSomething(){
    
//your insert code
    
return $this->dbConn->insertID();

Need a free blog? try Mitha Blog. Here You can create a free website or build a blog with dozens of free, customizable, mobile-ready designs and themes.
Reply


Messages In This Thread
insertID() - by superior - 11-19-2016, 03:25 PM
RE: insertID() - by ridho - 11-19-2016, 05:19 PM
RE: insertID() - by superior - 11-19-2016, 05:46 PM
RE: insertID() - by ridho - 11-19-2016, 08:03 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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