Re: echo or print question (maybe)?
| From: | ODCS | Date: | Thu, 10 Apr 2003 01:17:28 +0000 |
| Subject: | Re: echo or print question (maybe)? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19378@lists.php.net to get a copy of this message | ||
Ignore this. I really had a brain cramp happening. I was up all night
working on this and wasn't even thinking. I got it working and knew the
answer before I even posted - I should never play with the keyboard on no
sleep.
----- Original Message -----
From: "ODCS" <odcs@rogers.com>
To: "PHP Windows" <php-windows@lists.php.net>
Sent: Wednesday, April 09, 2003 11:52 AM
Subject: [PHP-WIN] echo or print question (maybe)?
> This is probably simple, but I have a real brain cramp today. I have the
> code below - if there is an error connecting to the database I am setting
an
> error message and then trying to get the script to return to step2.php.
> Right now all it does is display the contents of $redirect - how do I get
it
> to actually execute header(location: step2.php); instead of just
displaying
> the content?
>
> $redirect = "header(location: step2.php)"; This gets set in file 'A'.
>
> if(!@mysql_select_db($databasename)) { This is part of an include in
file
> 'A'.
>
> $message['server'] = $d_base_error;
> echo "$redirect";
> exit;
> }
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>