Re: AW: [PHP-DB] syntax error - -- agghhh!
| From: | beckie pack | Date: | Tue, 24 Apr 2001 16:39:38 +0000 |
| Subject: | Re: AW: [PHP-DB] syntax error - -- agghhh! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8847@lists.php.net to get a copy of this message | ||
it's always eaiser to count the parens and braces backwards to make sure
they're all there. i do it all the time.
On Tue, 24 Apr 2001, Thomas Lamy wrote:
> > 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
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>