Jump to content

HELP PLEASE


eric07

Recommended Posts

I keep getting this error in my browser:

Warning: Cannot modify header information - headers already sent by


What I have done is i have an input form which action is to do a run a query. I put in code to into query that if the number of records is >0 then go to page1 else page2 but for some reason it doesn't work.

if (mysql_num_rows($lecturer) > 0) {

header ("Location: page1.php");
exit;
} else {

header ("Location: page2.php");
exit;
}
Link to comment
Share on other sites

[!--quoteo(post=370621:date=May 2 2006, 12:49 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 2 2006, 12:49 PM) [snapback]370621[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Have you read the [i]two[/i] pinned topics in this forum regarding header problems?
[/quote]


No, where can I find it?
Link to comment
Share on other sites

[a href=\"http://www.phpfreaks.com/forums/index.php?showforum=12\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showforum=12[/a]

right at the top of the list, and third in the list
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.