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!
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\wamp\www\update_d.php:4) in c:\wamp\www\update_d.php on line 16
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\wamp\www\update_d.php:4) in c:\wamp\www\update_d.php on line 16
when i delete the session_start(); and try to see whats inside of $old_dept_ID, nothing is seen. The variable is null. How can i use sessions to store the "$theRow[0]" variable??
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\wamp\www\update_d.php:4) in c:\wamp\www\update_d.php on line 16
see where it says output started at blah? session start must be called before any output is sent. try moving it to the very top of your code
well you are not setting the session to anything, since you have the session = therow thing at the very top, $therow[0] is nothing yet, therefor it gets set to nothing. you can set the sessions whenever you like in a script, its just the session_start() that has to go at the very top of the page.
Yeah i got it now. It was a stupid mistake as you notice but im a beginner in this language (and also all the languages ) so im doing this kind of mistakes. Thank you so much...