I am having trouble as to why the statement below won't do as I expect. Below is just a snippet and i am trying to compare the two post variables to the database table...
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
$user_databaseF = $_POST['firstname_'] ;
$user_databaseS = $_POST['lastname_'];
$table_check_query = "SELECT * FROM clients_table WHERE _first = '$user_databaseF' AND _surname = '$user_databaseS'";
$result_of_table_query = $mysqli->query($table_check_query);
if(empty($result_of_table_query)) {
echo " we are good to start" ; // Im getting duplicates in table
I'm thinking its here if(empty($result_of_table_query))