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 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] 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. 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
Archived
This topic is now archived and is closed to further replies.