Get Started

Where Syntax

Query

Transaction

Advanced

PDO object

Debug

Information

version: 1.1.3

get

Get only one record from table

get($table, $columns, $where)
Return: [string/array] Return the data of the column.
This function get only one record.
$email = $database->get("account", "email", [
	"user_id" => 1234
]);

// $email = "foo@bar.com"

$profile = $database->get("account", [
	"email",
	"gender",
	"location"
], [
	"user_id" => 1234
]);

// $profile = array(
// 	"email" => "foo@bar.com",
// 	"gender" => "female",
// 	"location" => "earth"
// )