Jump to content

adding login system to a website


LostAndConfused

Recommended Posts

Hello, I have been playing a new game lately called Phoenix Dynasty and a guild in that game invited me and found out I have *some* knowledge about websites. They asked me to make them a website (for the guild) that MUST have a login/account system built in...

 

Well I found one online and now i'm trying to add it to my webpages i had already made. I tried the system itself (on mostly blank php pages) and it DOES work. After setting it all up I went to change a few small things and I think I broke something somewhere. My scripting skills arn't bad but i'm not very knowledgeable about php so I may have made some structure or grammer mistakes somewhere. Can somebody check this piece and tell me if it looks ok?

 

It's for registering new accounts. It started out with just username, password, and email fields and I wanted to add 3 more. I added the 3 new ones to MySQL but everytime I go to sign up now, it returns Registration Failed for some reason. Maybe it's a problem with MySQL but this is the biggest part I changed which seems to work but may have bugs... Can somebody please check it for me?

 

Please check the added codes between lines...

301~338

 

 

if it is all correct, can you possibly tell me what makes it return failed?

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/137184-adding-login-system-to-a-website/
Share on other sites

Wow that actually fixed it. I didn't notice the changes I needed in database.php...

 

9three, can you tell me the correct way of fixing those "too many parenthesis" errors?

 

I signed up but when I checked it on MySQL, the major and minor fields somehow got switched? Any idea what could have caused that? I doubled checked all the edits I made and I don't have any wrong majors where minor should be or minors where majors should be...ect...

 

also, I went to go login now that it said success but it says invalid password  ??? I didn't change anything related to the password so what could be wrong?

sweet! :)

 

Ok fixed the backwards major/minor thing and also the password thing (i guess i lowered the limit in MySQL)

 

so now everything looks perfect, although I never got the confirmation emails from me signing up... any ideas on that?

 

(also still need to fix the parenthesis thing still)

Ok here are afew pointers:

1:On line 309 remove first 2 (( and last 22 as these are just excess.

2:On line 322 and 335 remove first and last 4 (.

3: Have you defined the constant EMAIL_WELCOME correctly? (ie you haven't set it to false by default)

4: Check your mailer class so that you have set up your email settings correctly and that the email function is being passed the expected amount of parameters.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.