I get this error from my code.
Fatal error: Cannot break/continue 1 levels in
/www/u1255/shop/purchase.php on line 22
I think I need to end the functions if a condition is met so is there a
way to do it without breaking?
Where do I go from here?
?
include ('products_sc_fns.php');
// The
Break an continue are for loops (while,for ...), if you want to get out
of a function, use return
Steve Jackson wrote:
I get this error from my code.
Fatal error: Cannot break/continue 1 levels in
/www/u1255/shop/purchase.php on line 22
I think I need to end the functions if a condition is met
instead of using break use exit() where u have ur breaks and will work fine
-Original Message-
From: Marek Kilimajer [mailto:kilimajer;webglobe.sk]
Sent: Tuesday, 29 October 2002 1:30 AM
To: PHP
Subject: Re: [PHP] New Error?
Break an continue are for loops (while
3 matches
Mail list logo