eric07 Posted May 2, 2006 Share Posted May 2, 2006 I keep getting this error in my browser:Warning: Cannot modify header information - headers already sent byWhat 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;} Quote Link to comment Share on other sites More sharing options...
zq29 Posted May 2, 2006 Share Posted May 2, 2006 Have you read the [i]two[/i] pinned topics in this forum regarding header problems? Quote Link to comment Share on other sites More sharing options...
eric07 Posted May 2, 2006 Author Share Posted May 2, 2006 [!--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? Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 2, 2006 Share Posted May 2, 2006 [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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.