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;} Link to comment https://forums.phpfreaks.com/topic/8907-help-please/ 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? Link to comment https://forums.phpfreaks.com/topic/8907-help-please/#findComment-32679 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? Link to comment https://forums.phpfreaks.com/topic/8907-help-please/#findComment-32684 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 Link to comment https://forums.phpfreaks.com/topic/8907-help-please/#findComment-32686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.