TH ไทย
เวอร์ชัน: v2.3.0

has

ตรวจสอบว่ามีบันทึกที่ตรงกันอยู่ในตารางหรือไม่

has($table, $where)
has($table, $join, $where)
ค่าที่ส่งกลับ
[bool] true หากพบข้อมูลที่ตรงกันอย่างน้อยหนึ่งรายการ มิฉะนั้น false
$isAccount = $database->has("account", [
	"AND" => [
		"OR" => [
			"user_name" => "foo",
			"email" => "foo"
		],
		"password" => "12345"
	]
]);

if ($isAccount) {
	echo "รหัสผ่านถูกต้อง";
} else {
	echo "รหัสผ่านไม่ถูกต้อง";
}