queryFetch
It makes a SELECT 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 queryFetch ( String $_query )
Parameters
Query string.
Return Values
Array with associate columns.
<?php
[
[ "name" => "Bruce", "surname" => "Wayne" ],
[ "name" => "Clark", "surname" => "Kent" ]
]
?>
Examples
<?php
$this->queryFetch("SELECT * FROM user");
?>