RE: AW: [PHP-DB] syntax error - -- agghhh!
it's always eaiser to count the parens and braces backwards to make sure they're all there. i do it all the time. ... or you use a cool Editor (like UE32) which will do this job for you =8) Greetinx, Mike (Germany) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DB] syntax error - -- agghhh!
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) -- Marc S. Bragg [EMAIL PROTECTED] Bialecki Bragg, PC p: 610-444-7508 f: 610-444-7548 http://www.chescolawyers.com/BB Chester County Legal Services - For All Your Legal Needs http://www.bloody100th.com WWII 101st Airborne Division http://www.petercatalano.com Soul of An Italian Artist -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DB] syntax error - -- agghhh!
Marc S. Bragg [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]