queryInsert

It makes a INSERT request to the database by the connection set in the config.json file.
Before doing the queries you must be sure that you have ever made the connection through the $this->addConnection("config/connection.json"); command and have enabled the connection inside the config.json file.

void queryInsert ( String $_query )

Parameters

Query string.

Return Values

Last id inserted.

Examples

<?php
  $this->queryInsert("INSERT INTO user (name, surname) VALUES ('Bruce', 'Wayne')");
?>