Hello in my code i am unable to fetch rows please check

if (isset($email) && isset($key))
{


        $get_verify_email = "SELECT * FROM users_registration  WHERE email_address ='$email' AND com_code='$key'";

        if ($result = mysqli_query($dbc, $get_verify_email)) {

         while ($row = $result->fetch_row()) {
        $name = $row["Name"];
        $business = $row["business_type"];

        }
    /* free result set */
    $result->free();
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.