JohnMyrthong Posted June 25, 2015 Share Posted June 25, 2015 I friend i have try to build a small forum from scratch using PHP and Mysqli(Procedural) but i have problem realting to this two issue: 1.session already started and 2.undefine index like $_SESSION['user_name']/$_SESSION['user_level']/and $_SESSION['signed_in'] variable so can any one show me or guided me how to do exactly i try a lot to fix it but i can't i try with my all my effort but till now i can manage to fix it so please any one help me,If you don't understand my problem also i will upload my source code so that you can pin point where excatly i do wrong thanks alot! category.php connect.php create_cat.php create_topic.php footer.php header.php index.php reply.php signin.php signout.php signup.php topic.php Link to comment Share on other sites More sharing options...
justsomeguy Posted June 25, 2015 Share Posted June 25, 2015 If you're getting an error about the session already being started then the message will indicate both places where you used session_start. If you're starting the session in an include file, for example, then there's no reason to start it again after including that file. An undefined index error means that you're trying to access an array element that doesn't exist. Before you try to access it you can use isset to check if it is set.http://www.php.net/manual/en/function.isset.php Link to comment Share on other sites More sharing options...
JohnMyrthong Posted June 26, 2015 Author Share Posted June 26, 2015 Thnks so much sir for ur good tips i really appreciate it,i'll try to fix it up again will all my effort on this task as it is my project,i'll be contacting again if i encounter any problem thnkqq sir have a gud day Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now