I'm using word-press and have embedded the following code in the body of the website with hope it will redirect the user the relevant page.
$current_user = wp_get_current_user();
$e=$current_user->user_email;
$result = mysql_query("SELECT users.user_email
FROM users
WHERE users.user_email='$e'");
$numResult = mysql_num_rows($result);
if ($numResult > 0) {
header( "Location: ../Confirm" );
} else {
header( "Location: ../Insert" );
}
Unfortunately no redirect happens...any ideas?