suki2shoes Posted March 30, 2006 Share Posted March 30, 2006 hi guyslearning php and i'm very stuck.[a href=\"http://pastebin.com/630534\" target=\"_blank\"]http://pastebin.com/630534[/a] - getting header sent already error, ln137, i guess its affected by the session include at top. [a href=\"http://pastebin.com/630511\" target=\"_blank\"]http://pastebin.com/630511[/a]. but dunno what the problem is.also, when my session_id is written to my db, its just staying at 0. even though i know a random number is being generated(just prinnted it to test).i'm not sure but maybe this is to do with lines 11-20 in [a href=\"http://pastebin.com/630534\" target=\"_blank\"]http://pastebin.com/630534[/a] also.thank you in advance for help Quote Link to comment https://forums.phpfreaks.com/topic/6189-header-writing-to-mysql-problem/ Share on other sites More sharing options...
Eddyon Posted March 30, 2006 Share Posted March 30, 2006 In reply to the first part:[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=37442\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=37442[/a] Quote Link to comment https://forums.phpfreaks.com/topic/6189-header-writing-to-mysql-problem/#findComment-22342 Share on other sites More sharing options...
ober Posted March 30, 2006 Share Posted March 30, 2006 The first error is always because the session_start() is after something is sent to the browser. Anything, white space or the wrong placement of the PHP tag can throw it off. I don't know that an include of the session_start() would do it, but it's possible.Try placing the code without the include. Quote Link to comment https://forums.phpfreaks.com/topic/6189-header-writing-to-mysql-problem/#findComment-22343 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.