I'm still quite new to php and js and i know how to check if the input field is empty but i dont know how i would check if the value that the user has inputted into the field does not exist in the database ive tried using the == false
but to no avail
any help is appreciated!
if (empty($a))
{
// Error Message
}
if ( $a == false)
{
}