RE: [PHP] New Error?

2002-10-28 Thread Peter Houchin
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

Re: [PHP] New Error?

2002-10-28 Thread Marek Kilimajer
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