Instead of "print" you want to issue a header(). Check the manual for 
various caveats.


At 01:57 PM 1/4/2002 +0000, matt stewart wrote:
>Can't find the right instructions on, basically, i want a page where
>someone logs in, and then according to the database entry for them, either
>they are an admin user or a normal user, and it should then send them to a
>page depending on which they are.
>I've accessed the db ok, and checked which they are, then i've used
>if ($myrow[Admin] == "Y"){
>         print "Location:admin.php";
>         print "Location:user.php";
>this doesn't sem to work - just gives a blank screen with the standard html
>headers and footers, rather than the desired location page.
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (
>Version: 6.0.312 / Virus Database: 173 - Release Date: 31/12/01
>PHP Database Mailing List (
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to