Click here to enter the members area"; $_SESSION['username']=$dbusername; } else echo "Incorrect password"; } else echo ("That username doesnt exist"); } else die ("Please enter a username and password"); ?>
Once I put in the username and password and hit login, it just brings up a blank page leading to login.php witch doesn't have anything on it. Please help, thanks!
@EwizedTech It's because when i created the register form i encypted the password and the encryted password was stored in the database but the login for when i did the tutorial i didnt use an encypted password so you just need to add in on the login for the MD5 encrytion function to encypt the users password before checking the current password in the database
hey i've got a question.. as i type $username and other codes starting with $.. it doesn't turn blue. it's just plane black. and when i try to login the whole php code comes up in the browser.. help please
@paoloapol02 Wamp server comes with PHP instaled but just to check click on the green wamp icon in your toolbar and goto php and current version and make sure that a version is ticked. If it is then it might be that something is wrong with the php.ini file or something sorry but i cant help you with that try google it. As for the dreamweaver problem try google that but you might find that re-installing dreamweaver and wamp maybe that your problem may be fixed
oh yeah 1st comment, great tutorial b the way, just a quick enquiry would you be able to make a tutorial in the future that teaches you how to create a register form
hye ;)
when i click log in..this appear
Click here to enter the members area"; $_SESSION['username']=$dbusername; } else echo "Incorrect password"; } else echo ("That username doesnt exist"); } else die ("Please enter a username and password"); ?>
can u help me???
thanks
diela885 1 day ago
namae
RedRiddlerProd 6 days ago
this can be attacked with sql injection. by that i mean, i could add a user by writing some magic into the username field.
also you dun need select *
you could just do select `users`.`password` because you know the username already and dont need the id in your case anyways.
php.net/manual/en/function.mysql-real-escape-string.php
Noepel 1 week ago
should it no be
mysql_connect("localhost", "username", "password") or die(mysql_error()); mysql_select_db("Database_Name") or die(mysql_error()); and also
$query=mysql_query("SELECT * FROM users WHERE username='$username' ");
ActiveBassDestroyer 1 week ago
Once I put in the username and password and hit login, it just brings up a blank page leading to login.php witch doesn't have anything on it. Please help, thanks!
BudgieBlu 1 week ago
@BudgieBlu on login.php in do you have any echo's or a header in this if statement:
if($username==$db_username&&$enc_password==$db_password)
abell12 1 week ago
@abell12 yes i have the echo for the successful login and incorrect password
BudgieBlu 1 week ago
@BudgieBlu Can you send me your code in a private message?
abell12 1 week ago
It is so great
Teachingquran 2 weeks ago
YOU. ARE. BEAST......Done. best ever tutorial in the big huge world, thanks again man!
WH3NDUTYCALLS 3 weeks ago
Hello i notice that the register page encripts the password but the login form dose not login with out it bening encripted help me
EwizedTech 3 weeks ago
@EwizedTech It's because when i created the register form i encypted the password and the encryted password was stored in the database but the login for when i did the tutorial i didnt use an encypted password so you just need to add in on the login for the MD5 encrytion function to encypt the users password before checking the current password in the database
abell12 3 weeks ago
What are the steps to do this?
ZCarlos52 2 weeks ago in playlist Uploaded videos
@abell12 I have hosting and 'MySQL' is all on the cPanel, will my number still be "127.0.0.1"?
thanks
davervd86 1 month ago
@davervd86 Sometimes, but most servers provide you with a specific host to connect to. It should have told you this when you created your database
abell12 1 month ago
Comment removed
davervd86 1 month ago
Comment removed
davervd86 1 month ago
where can I download the code from this series?
stephensans 2 months ago
@stephensans Go to the link in the description. Register (Its free) and you will now be able to download
abell12 2 months ago
how do u fine'd out the local host number
GFXshadows 2 months ago
@GFXshadows Everybody's number is the same 127.0.0.1
abell12 2 months ago
@abell12 cheers
GFXshadows 2 months ago
@GFXshadows what about the username and password because it is still saying that line is wrong
GFXshadows 2 months ago
@abell12 what about the username and password because it is still saying that line of code is wrong
GFXshadows 2 months ago
@GFXshadows Send me the code in a private message
abell12 2 months ago
hey i've got a question.. as i type $username and other codes starting with $.. it doesn't turn blue. it's just plane black. and when i try to login the whole php code comes up in the browser.. help please
paoloapol02 6 months ago
@paoloapol02 Are you using dreamweaver to code if not what are you using. 2nd check if the server actually has php installed.
abell12 6 months ago
@abell12 yes i'm using dreamweaver.. how do i check if the server has php installed?
paoloapol02 6 months ago
@abell12 and I'm also using wamp as my server
paoloapol02 6 months ago
@paoloapol02 Wamp server comes with PHP instaled but just to check click on the green wamp icon in your toolbar and goto php and current version and make sure that a version is ticked. If it is then it might be that something is wrong with the php.ini file or something sorry but i cant help you with that try google it. As for the dreamweaver problem try google that but you might find that re-installing dreamweaver and wamp maybe that your problem may be fixed
abell12 6 months ago
oh yeah 1st comment, great tutorial b the way, just a quick enquiry would you be able to make a tutorial in the future that teaches you how to create a register form
blendercomedy 6 months ago
@blendercomedy Yeh sure i can do that. Subscribe to make sure you know when i upload it.
abell12 6 months ago