| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
ie must die
|
php registration
ok so ive got my sessions all set up for my login stuff and im good to go. But i need to test my login&password. Apparently i wasnt able to create a registration page due to the tutorial i was following didnt have one. im still a newbie to php, but i set up my tables in phpMyAdmin and was wondering how would i create a new username and password manually in phpMyAdmin. what kind of SQL Query would i use? I attached a screenshot of my tables. i set up a registration page, and my user is registered but it still wont let me in. so i want to create a user manually and see if the problem is within the code and not the tables. much much much help appreciated, you guys are awesome a DT |
|
|
|
|
|
#2 (permalink) | |
|
Senior Member
Join Date: Dec 2006
Location: Switzerland
Posts: 424
|
Quote:
post some of your php code, would be more helpful. To add a user in your table using phpymadmin, you dont need to use sql queries, you can simply click the "insert" tab. |
|
|
|
|
#3 (permalink) |
|
ie must die
|
This is my manage-check.php which is linked from the login form PHP Code:
|
|
|
|
#4 (permalink) |
|
Irn Bru Connoisseur
Join Date: May 2008
Location: Inverness, Scotland
Posts: 62
|
Make a new doc in notepad and put this code in PHP Code:
Save the file as testuser.php and run it. then try logging in. That should work. Also try checking over your registration code, you may be using an out-dated tutorial that assums register_globals is on |
|
|
|
#7 (permalink) | |
|
ie must die
|
Quote:
well it looks like the registration DID go through. Test is even in there. so now this means my coding is done wrong. anyway, here are some files that i use: manage-check.php PHP Code:
functions.php PHP Code:
members-only.php PHP Code:
db.php PHP Code:
|
|
|
|
|
#8 (permalink) |
|
ie must die
|
i found my problem. in my registration form i was encrypting the password by md5 and in my login form i was making sure it was sha1 one last question, i have a table called ID and all of the new registered users go to 0 by default. Is this something i should look into or it isn't really necessary? cause i know the ID is for the sessions, but should all be 0? |
|
![]() |
|