FluentPDO::insertInto PHP Method

insertInto() public method

Create INSERT INTO query
public insertInto ( string $table, array $values = [] ) : InsertQuery
$table string
$values array - accepts one or multiple rows, @see docs
return InsertQuery
    public function insertInto($table, $values = array())
    {
        $query = new InsertQuery($this, $table, $values);
        return $query;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Performs an insert query using FluentPDO
  */
 public function insert($table, array $data)
 {
     if (!$this->isConnected()) {
         static::connect();
     }
     $this->num_queries++;
     return $this->fpdo->insertInto($table)->values($data)->execute();
 }
All Usage Examples Of FluentPDO::insertInto