Hey PHP General List, well i cant do that...because i have lots of outputs before it..and i need them all..so..what should i do? error is like that:
Warning: Cannot add header information - headers already sent by (output started at C:\webaz\st\admin\menu.php:26) in C:\webaz\st\admin\menu.php on line 123 is there other posibility or i have to change all the code in other lines that it will not be any outputs? if there is any other way to redirect it would be great that u would help me...tank you Got your email on:Friday, May 03, 2002, 4:07:23 PM writing: :---- JS> I think it's because you need an absolute URL in there as opposed to JS> the relative one you're using, i.e. "Location: JS> http://www.example.com/menu?pg=news" JS> Try that, and try looking here: JS> http://www.php.net/manual/en/function.header.php JS> HTH, JS> Jason Soza JS> ----- Original Message ----- JS> From: Mantas Kriauciunas <[EMAIL PROTECTED]> JS> Date: Friday, May 3, 2002 4:59 pm JS> Subject: [PHP] if cant use header what should i use? or how to do this? >> Hey PHP General List, >> >> I have code like this(code starts at 100 line and has lots of >> outputs): >> if($news==del) { >> if(!$nr) { >> show_news_menu(); >> show_news_del(); >> } >> else if($nr) { >> if($do_del) { >> $online = >> @mysql_connect($db_address,$db_user,$db_pass) or die("MySQL Not >> Connected"); mysql_select_db($db_name,$online) or >> die("NO DATABASE FOUND"); >> if (!$result = @mysql_query("DELETE FROM news >> WHERE id = \"$nr\"") ) { >> echo "Query Error"; >> } >> die; >> } >> else if($do_cancel) { >> Header("Location: menu?pg=news"); <<---- wrong >> } else { >> show_news_menu(); >> show_news_del(); >> << ECHO SOME HTML STUFF(comments) >> >> } >> } >> >> } >> >> i have problem with Header, how should i change it? any suggestions? >> is there any other function to redirect? or should i make some >> fucntion my self..or what shoud i do ? >> thanks :------------------------------: Have A Nice Day! Mantas Kriauciunas A.k.A mNTKz Contacts: [EMAIL PROTECTED] Http://mntkz-hata.visiems.lt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php