You are not a fool and I doubt you are being perceived as one by anyone here. You have questions and you are trying to find answers while working through problems as well as you can on your own. The fool would be the one who remains ignorant .
Alright, I'm getting closer but I'm a little puzzled. Big surprise. I just hope to God the solution doesn't end up to be staring me in the face.
In my login script after it validates the user input it sets the session etc etc. I know that this works because as you can see I have a die in there and when I do it outputs the correct user id from the database.
Darkranger85, on 26 February 2013 - 12:16 PM, said:
Sigh. . .
I don't know why I keep missing these little things. And it's not like I just have a problem and post a question. . . I actually sat there looking at that path for a while. . .
Sometimes I think I need a new brain.
After that, I think I'm going to take another look at the problem I'm having now. It's probably stupid and I don't want to make myself look like a bigger fool than I already am.
It is good that you are persisting, and taking on board the advice given to you here. You might be encountering difficulties along the way but you are also learning a lot
So if the file is included into index.php wouldn't it have access to the init.php file aswell?
If you have already included a file then, yes, you should have access to the classes, functions, variables, etc., defined in that file. A simple way to check is to define a variable in the included file and then echo it from the other file.
Seriously, you have no idea how much you have encouraged me.
I'm naturally a very self conscious person and I doubt myself so when I have a lot of questions that I see as stupid questions I think that everyone around me is seeing me as some annoying moron that should just go away lol.
Scripting and design is like the first skill that I have ever started to learn and had a true interest in, almost to where it's becoming a passion. I've spent 9+ hours in front of this computer watching videos, reading guides, etc etc.
Honestly, after all the stupid simple errors that have puzzled me for days I was beginning to think that you guys might think I'm retarded. lol
However I'm still pounding my head on the keyboard lol.
This post has been edited by Darkranger85: 26 February 2013 - 08:44 PM