Re: Error for registration mail.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxx"); 
  header("Location: thankYou.php");
} else {
  die("Error! Could not insert values".mysql_error());
}


Niel

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux