Re: [PHP] Question about the exit() command

2002-12-19 Thread Mike Joseph
- From: "Philip Olson" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 4:55 PM Subject: Re: [PHP] Question about the exit() command How about: if (!$conn = mysql_

Re: [PHP] Question about the exit() command

2002-12-19 Thread Rick Emery
What do you mean "return to the calling page"? The exit() command simply ceases processing of PHP and HTML. I believe what you're saying is that if the user clicks on a PHP hyperlink on the first page, then goes to another page. If there is something "wrong" there, you nwant to return to the pag

Re: [PHP] Question about the exit() command

2002-12-19 Thread Beauford.2002
MAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 4:55 PM Subject: Re: [PHP] Question about the exit() command > > How about: > > if (!$conn = mysql_connect($host, $user, $pass)) { > include 'static_html.inc&#x

Re: [PHP] Question about the exit() command

2002-12-19 Thread Gerald Timothy Quimpo
On Thursday 19 December 2002 04:45 pm, Beauford.2002 wrote: > I want to be able to exit out of a PHP webpage and > return to the calling page if certain conditions are not met. > It appears using exit() will do this, but I am unclear exactly how to use > it. exit won't do what you want. exit d

Re: [PHP] Question about the exit() command

2002-12-19 Thread Philip Olson
How about: if (!$conn = mysql_connect($host, $user, $pass)) { include 'static_html.inc'; exit; } print "Welcome, yes the database is connected"; exit ends the script, nothing after its use is executed. Regards, Philip Olson On Thu, 19 Dec 2002, Beauford.2002 wrote: > Hi,