InsertQuery::execute PHP Method

execute() public method

Execute insert query
public execute ( mixed $sequence = null ) : integer
$sequence mixed
return integer last inserted id or false
    public function execute($sequence = null)
    {
        $result = parent::execute();
        if ($result) {
            return $this->getPDO()->lastInsertId($sequence);
        }
        return false;
    }

Usage Example

 public function execute_logged($message, $tag, $module, $variables = array())
 {
     if (!is_null($retval = parent::execute())) {
         cvwobase_add_audit($message, $tag, $module, $variables);
     }
     return $retval;
 }
All Usage Examples Of InsertQuery::execute