AW: [PHP-DB] syntax error - -- agghhh!
| From: | Thomas Lamy | Date: | Tue, 24 Apr 2001 16:44:41 +0000 |
| Subject: | AW: [PHP-DB] syntax error - -- agghhh! | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8845@lists.php.net to get a copy of this message | ||
> Marc S. Bragg [mailto:marc@chescolawyers.com] wrote:
>
> Hi
>
> Anyone have any idea of what the syntax error in this statement is?
>
> else if (($op == "ds") && ($action == "sub") && ($password
> ==
> $passnog)
> && ($password) &&
> (!eregi("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4
> }$",$email))
> {
>
> It worked fine until I added the tricky part:
>
> &&
> (!eregi("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4
> }$",$email)
>
You are missing a ")" to close the if expression
Thomas