Re: Error for registration mail.
| From: | Niel Archer | Date: | Sun, 07 Jan 2007 16:48:51 +0000 |
| Subject: | Re: Error for registration mail. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42896@lists.php.net to get a copy of this message | ||
Hi
You have two functions between the if and else, the syntax you've used
only allows one. Use braces.
if(mysql_query($sql)) {
mail ($email, "Thank you for registering!", $body, "From:
Malls@GurgaonShoppingMalls.com");
header("Location: thankYou.php");
} else {
die("Error! Could not insert values".mysql_error());
}
Niel