Re: [PHP] Exit script early

2002-07-16 Thread Adam Voigt
exit; =) Adam Voigt [EMAIL PROTECTED] On Tue, 2002-07-16 at 13:08, Michael Zornek wrote: Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits

Re: [PHP] Exit script early

2002-07-16 Thread Chris Boget
So I'm creating a details.php page where I'm expecting the url to be something like: My question is what command can I use to end the script [inside the top part of that if statement]? Ironically enough, exit(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Exit script early

2002-07-16 Thread Martin Clifford
RTFM re: Exit and Continue. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Michael Zornek [EMAIL PROTECTED] 07/16/02 01:08PM Ok, So I'm creating a details.php page where I'm expecting the url to be something like:

Re: [PHP] Exit script early

2002-07-16 Thread 1LT John W. Holmes
Why do you need to exit? If your code is layed out correctly, you shouldn't have to. if($something) { //part 1 } else { //part 2 } If $something evaluates to true, only Part 1 is executed...part 2 is never seen. vice versa if $something is negative. ---John Holmes... - Original Message