Get Started

Medoo 1.4

Where Syntax

Query

Fetch

Transaction

Advanced

PDO object

Debug

Information

version: 1.4.5

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.
if ($database->has("account", [
	"AND" => [
		"OR" => [
			"user_name" => "foo",
			"email" => "foo"
		],
		"password" => "12345"
	]
]))
{
	echo "Password is correct.";
}
else
{
	echo "Password error.";
}