Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Management

Advanced

Raw object

PDO object

Debug

Information

version: 2.1.2

has

Determine whether the target data existed from the table.

has($table, $where)
has($table, $join, $where)
Return: [boolean] Boolean value for founded data.
$isAccount = $database->has("account", [
	"AND" => [
		"OR" => [
			"user_name" => "foo",
			"email" => "foo"
		],
		"password" => "12345"
	]
]);

if ($isAccount) {
	echo "The password is correct.";
} else {
	echo "Invaild password.";
}