Get Started

Where Syntax

Query

Transaction

Advanced

PDO object

Debug

Information

version: 1.1.3

has

Determine whether the target data existed

has($table, $where)
has($table, $join, $where)
Return: [boolean] True of False if the target data has been founded.
The Where argument is required. This function is the best to verify data of password.
if ($database->has("account", [
	"AND" => [
		"OR" => [
			"user_name" => "foo",
			"email" => "foo"
		],
		"password" => "12345"
	]
]))
{
	echo "Password is correct.";
}
else
{
	echo "Password error.";
}