Hey everyone, No errors here but I was wondering..is there an easy way to simply "add" an administrator in a log-in script to redirect to a certain area of a website that the administrator can only access? Any advice would be greatly appreciated :)
Please search this forum, it's been covered to death.
so u help me.
Also if you want help on this at least show some effort by posting your own code first.
diafol
Keep Smiling
10,668 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57
Ok, so you lifted some code from this thread - possibly even my code. So, I fail to see where you've shown some effort yourself. As you mention, this is your first task, so I expect you are the one that's supposed to do it.
What else have you got? What are your ideas? You will need to read up on sessions, db access and manipulation, header redirects. It is essentially a set of very, very simple scripts.
As mentioned previously, have a go yourself first.
diafol
Keep Smiling
10,668 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57
I concur with adam. A google search for php tutorials or php beginner should afford some immediate help. I'm quite a fan of textbooks when it comes to learning a new language as they have a nice google page in the back called an index which allows you to home in on specific searches. Wrox, O'Reilly and Apress usually do it for me with regard to publishers. There is no substitute for failing and learning from your own mistakes. Being a script bunny will only get you so far. If things don't work you'll be well and truly stuck as you'll try to debug or fix code that you don't understand. Worse and with some embarrassment, you'll supply the code in a forum post and you'll get the question - 'Is this your code? If not, ask the author'. We're always here to help - note the 'help' - we don't supply novel code for thread starters as a rule. Have a go, but do come back if you have questions or you've been stuck for some time with your code.
diafol
Keep Smiling
10,668 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57