aznkidzx Posted January 26, 2009 Share Posted January 26, 2009 I am a beginner in PHP and HTML. And unfortunately, I need help with creating a member's area. I have made a login, register, and logout script. They work perfectly fine. The thing is that I want to put stuff IN my member's area. My members area is TOTALLY EMPTY. Here is my free "site" that I got. http://test.colorev.co.cc/ login with the username "demo" and the password "demo" How do I add stuff to it? Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/ Share on other sites More sharing options...
DeanWhitehouse Posted January 26, 2009 Share Posted January 26, 2009 Ok, do you have a question for us, if not this is the wrong section. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747023 Share on other sites More sharing options...
aznkidzx Posted January 26, 2009 Author Share Posted January 26, 2009 I added.. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747024 Share on other sites More sharing options...
revraz Posted January 26, 2009 Share Posted January 26, 2009 Still don't understand what you are actually asking. Do you have a Database? Is it setup? Do you know how to connect to it, write to it, read from it, update it? Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747028 Share on other sites More sharing options...
aznkidzx Posted January 26, 2009 Author Share Posted January 26, 2009 Yes I have a database. If you try and register at http://test.colorev.co.cc/, once you register, the information goes to my database. Yes its setup. Yes I connected it and read from it and update it.. I need to add to member's area. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747030 Share on other sites More sharing options...
DeanWhitehouse Posted January 26, 2009 Share Posted January 26, 2009 Ok then run a query to get the details from the database using their id (or whatever you are setting in the session) in the query to get the correct users info Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747039 Share on other sites More sharing options...
aznkidzx Posted January 26, 2009 Author Share Posted January 26, 2009 Nono.. When I say member's area, I mean like a web page in the site where only when members are logged in, they can view. Like if they go to the member's area without logging in, it'd say something like "Please sign in or register to view the member's area." Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747043 Share on other sites More sharing options...
DeanWhitehouse Posted January 26, 2009 Share Posted January 26, 2009 Yes, do you actually mean can we write it for you? To do this check for a session (which is set when logging in) then use a session to get that users details, if the session is not present then tell them they need to log in Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747046 Share on other sites More sharing options...
aznkidzx Posted January 26, 2009 Author Share Posted January 26, 2009 I dont.. Really know how. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747050 Share on other sites More sharing options...
DeanWhitehouse Posted January 26, 2009 Share Posted January 26, 2009 Ok, then how did you write a registration and login script ? Look at this kinda tutorial which covers login and protected for pages http://djw-webdesign.awardspace.com/code.php?snippet=9 Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747054 Share on other sites More sharing options...
aznkidzx Posted January 27, 2009 Author Share Posted January 27, 2009 I still dont know how to add to it, also the link you posted, the person didn't post a way to login to the database so therefore I can't use it yet. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747098 Share on other sites More sharing options...
DeanWhitehouse Posted January 27, 2009 Share Posted January 27, 2009 I thought you said you wrote a login script? Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747102 Share on other sites More sharing options...
aznkidzx Posted January 27, 2009 Author Share Posted January 27, 2009 Oh yah.. I just realized. http://test.colorev.co.cc/register.php http://test.colorev.co.cc/ But I still dont get how to add to the member's area Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747112 Share on other sites More sharing options...
DeanWhitehouse Posted January 27, 2009 Share Posted January 27, 2009 Now be honest did you write the login or did you copy and paste from the internet (or similar), because i have given you all the information you would need if you wrote a login script using a db and sessions, and if you haven't used sessions i have given a link to a site on how to protect pages using sessions. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747113 Share on other sites More sharing options...
aznkidzx Posted January 27, 2009 Author Share Posted January 27, 2009 No, I didn't write it. My friend said he made it. Not real life friend. Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747118 Share on other sites More sharing options...
DeanWhitehouse Posted January 27, 2009 Share Posted January 27, 2009 I have made a login, register, and logout script. Please don't lie then, it makes us assume you know enough to just use the logic we tell you. I'm afraid we won't just hand you the code, please post in the freelance section or attempt to create the code yourself and when you hit a problem we will help Quote Link to comment https://forums.phpfreaks.com/topic/142546-solved-members-area/#findComment-747120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.