Jump to content

Archived

This topic is now archived and is closed to further replies.

eric07

HELP PLEASE

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;
}

Share this post


Link to post
Share on other sites
Have you read the [i]two[/i] pinned topics in this forum regarding header problems?

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×

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.