I can't get results from such query:
$email = $_POST['email'];
$result = $wpdb->get_row("SELECT * FROM hp_tempusers WHERE email = %", $email);
It's always empty. But if I make:
$email = '[email protected]';
everything will work. I can't find the mistake and I will be very pleasant for any help.
$result = $wpdb->get_row("SELECT * FROM hp_tempusers WHERE email = '$email', ARRAY_A);