header/insertion problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
suki2shoes
Forum Newbie
Posts: 4
Joined: Thu Mar 30, 2006 10:57 am

header/insertion problem

Post by suki2shoes »

hi guys

learning php and i'm very stuck.


http://pastebin.com/630534 - getting header sent already error, ln137, i guess its affected by the session include at top. http://pastebin.com/630511. 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 http://pastebin.com/630534 also.

thank you in advance for help
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

You should post the code here too - in case that page ever gets taken down.

Anyway, your problem might be that you're setting a $_SESSION value on line 12.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply