I know that session_start() goes before the headers (methinks php.net was clear enough about that, hehe). At any rate, everytime I use the session_start, I make sure that it's the very first line after <?php.
This is the first few lines of my code. (I moved it up a bit, so the error is no longer at line 14.
Fatal error: Call to undefined function: newprod() in /usr/local/apache/htdocs/faq/faq_add_prod.php on line 6
2- session_start();
3- if (session_is_registered($username) && session_is_registered($password)) {
4-
5- if (!$newcat) {
6- newprod();
7- } else {
8- applyadd($newprod,$newcat,$cat_id,$newcatname1,$newcatname2,$newcat_id,$catname);
9- }
Hope it helps.