Comment by freid001 on February 15, 2010 at 7:01 pm
thx i got it working thx so much this is the only one i have found that attachaly works thx!!!!!
Comment by freid001 on February 15, 2010 at 7:08 pm
i get this problem $end
Comment by freid001 on February 15, 2010 at 8:04 pm
plz help : whats wrong: $query = mysql_query(“SELECT * FROM Game WHERE user=’$myusername”);
Comment by freid001 on February 15, 2010 at 8:55 pm
what do u set $query as ????
Comment by craterdude on February 15, 2010 at 8:57 pm
it worx!
Comment by NUKE547 on February 15, 2010 at 9:02 pm
When i try to log in it doesnt say anything for when i put real username or fake username. page just stays blank
Comment by eaglesphere03 on February 15, 2010 at 9:58 pm
what is md5?
Comment by HipHop4evahh on February 15, 2010 at 10:15 pm
Getting this error;
Parse error: syntax error, unexpected T_ELSE in C:xampphtdocsloginlogin.php on line 24
Comment by maranellomania on February 15, 2010 at 10:26 pm
I have managed to encrypt the password sent from this form so it sends it as a md5 and therefore does match the password in my database which is also encrypted and guess what………..it works wooo hooo. Should answer your questions guys. Steve
Comment by maranellomania on February 15, 2010 at 11:14 pm
I am pretty sure that the incorrect password issue is because you have encrypted the password using md5 for the registration but the password being sent from this form is not encrypted therefore the will not match! I do not know how to send the password md5 encrypted from this so any help would be very much appreciated – I hope I have helped others, I spent hours thinking what the issue may be. Steve.
Comment by DubThisAFoundation on February 16, 2010 at 12:06 am
I have the same problem as azzmch–
with the error
“incorrect password!”
even when all data appears correct. Could someone help pleeeeeaseeee!!!
Comment by azzmch on February 16, 2010 at 12:56 am
if ($numrows!==0)
{
while ($row = mysql_fetch_assoc($query))
{
$dbusername = $row['username'];
$dbpassword = $row['password'];
}
if
($username==$dbusername&&$password==$dbpassword
…
Can anyone help?
Comment by azzmch on February 16, 2010 at 1:33 am
Even if the username and password are correct I get a message saying INcorrect Password, here is the code that I think is giving the error however there does not seem to be any problems: My code is shown in the next comment.
Comment by senos64 on February 16, 2010 at 2:23 am
Yes I realized that, but for this purpose, why use a loop, when he will only get one result back, beacause of : WHERE username=’$username’
Won’t that automatically just return 1 row because only one user can have that specific username? No need for looping is there?
Comment by BlueCometDesign on February 16, 2010 at 2:55 am
If you want to return just ONE query, you can use just $row = mysql_fetch_accoc($query). But if you want to return more than one queries, you have to do while($row = mysql_fetch_accoc($query)).
I hope that will help.
Comment by senos64 on February 16, 2010 at 3:03 am
why make a while loop:
while($row = mysql_fetch_assoc($query) )
wouldn’t it work just with:
$row = mysql_fetch_assoc($query)
the $row would still get the array right? what am I missing?
Comment by tekriavideos on February 16, 2010 at 3:05 am
no $ but looks like S alot
Comment by DcTechDc on February 16, 2010 at 3:41 am
But he does it with a s?
Comment by tekriavideos on February 16, 2010 at 3:41 am
ok when you do the $numrow!=0 make sure you dont put rows i done this and redone like 10times just because of adding a s by mistake
Comment by TheSchlummerschurke on February 16, 2010 at 3:53 am
Hello, OperationHack
I had the same problem, but I found the bug!
Did you write “$_POST” in capital letters?
$username = $_POST["username"];
$password = $_POST["password"];
When you wrote POST in small letters the variables $username and $password are empty. So the part under the “else is called.
Comment by dalawdog on February 16, 2010 at 4:19 am
im having the same problem.
its a web directory problem that can be solved in the config file, but i dont have a clue hot to fix it.
Comment by OperationHack on February 16, 2010 at 4:54 am
Mine keeps going to the error message:
Please enter a username and a password!
when I do enter both of em!
Comment by digesteddonkey on February 16, 2010 at 5:26 am
=) arnt we all… ive re written this code like 24 times (yes im counting..) and still get error messages…
Comment by TheSchlummerschurke on February 16, 2010 at 6:20 am
Oh, how embarrassing.
In my Internetbrowser the executing of PHP-Scrips is deaktivated!
Comment by lewisb1000 on February 16, 2010 at 7:10 am
nice. managed to to get it working. thanks
About this blog
This blog is dedicated to showcasing great web design as well as providing advice and tips to any aspiring web designers out there. Hopefully these articles will aid you in your design and development.
25 comments
Comment by freid001 on February 15, 2010 at 7:01 pm
thx i got it working thx so much this is the only one i have found that attachaly works thx!!!!!
Comment by freid001 on February 15, 2010 at 7:08 pm
i get this problem $end
Comment by freid001 on February 15, 2010 at 8:04 pm
plz help : whats wrong: $query = mysql_query(“SELECT * FROM Game WHERE user=’$myusername”);
Comment by freid001 on February 15, 2010 at 8:55 pm
what do u set $query as ????
Comment by craterdude on February 15, 2010 at 8:57 pm
it worx!
Comment by NUKE547 on February 15, 2010 at 9:02 pm
When i try to log in it doesnt say anything for when i put real username or fake username. page just stays blank
Comment by eaglesphere03 on February 15, 2010 at 9:58 pm
what is md5?
Comment by HipHop4evahh on February 15, 2010 at 10:15 pm
Getting this error;
Parse error: syntax error, unexpected T_ELSE in C:xampphtdocsloginlogin.php on line 24
Comment by maranellomania on February 15, 2010 at 10:26 pm
I have managed to encrypt the password sent from this form so it sends it as a md5 and therefore does match the password in my database which is also encrypted and guess what………..it works wooo hooo. Should answer your questions guys. Steve
Comment by maranellomania on February 15, 2010 at 11:14 pm
I am pretty sure that the incorrect password issue is because you have encrypted the password using md5 for the registration but the password being sent from this form is not encrypted therefore the will not match! I do not know how to send the password md5 encrypted from this so any help would be very much appreciated – I hope I have helped others, I spent hours thinking what the issue may be. Steve.
Comment by DubThisAFoundation on February 16, 2010 at 12:06 am
I have the same problem as azzmch–
with the error
“incorrect password!”
even when all data appears correct. Could someone help pleeeeeaseeee!!!
Comment by azzmch on February 16, 2010 at 12:56 am
if ($numrows!==0)
{
while ($row = mysql_fetch_assoc($query))
{
$dbusername = $row['username'];
$dbpassword = $row['password'];
}
if
($username==$dbusername&&$password==$dbpassword
…
Can anyone help?
Comment by azzmch on February 16, 2010 at 1:33 am
Even if the username and password are correct I get a message saying INcorrect Password, here is the code that I think is giving the error however there does not seem to be any problems: My code is shown in the next comment.
Comment by senos64 on February 16, 2010 at 2:23 am
Yes I realized that, but for this purpose, why use a loop, when he will only get one result back, beacause of : WHERE username=’$username’
Won’t that automatically just return 1 row because only one user can have that specific username? No need for looping is there?
Comment by BlueCometDesign on February 16, 2010 at 2:55 am
If you want to return just ONE query, you can use just $row = mysql_fetch_accoc($query). But if you want to return more than one queries, you have to do while($row = mysql_fetch_accoc($query)).
I hope that will help.
Comment by senos64 on February 16, 2010 at 3:03 am
why make a while loop:
while($row = mysql_fetch_assoc($query) )
wouldn’t it work just with:
$row = mysql_fetch_assoc($query)
the $row would still get the array right? what am I missing?
Comment by tekriavideos on February 16, 2010 at 3:05 am
no $ but looks like S alot
Comment by DcTechDc on February 16, 2010 at 3:41 am
But he does it with a s?
Comment by tekriavideos on February 16, 2010 at 3:41 am
ok when you do the $numrow!=0 make sure you dont put rows i done this and redone like 10times just because of adding a s by mistake
Comment by TheSchlummerschurke on February 16, 2010 at 3:53 am
Hello, OperationHack
I had the same problem, but I found the bug!
Did you write “$_POST” in capital letters?
$username = $_POST["username"];
$password = $_POST["password"];
When you wrote POST in small letters the variables $username and $password are empty. So the part under the “else is called.
Comment by dalawdog on February 16, 2010 at 4:19 am
im having the same problem.
its a web directory problem that can be solved in the config file, but i dont have a clue hot to fix it.
Comment by OperationHack on February 16, 2010 at 4:54 am
Mine keeps going to the error message:
Please enter a username and a password!
when I do enter both of em!
Comment by digesteddonkey on February 16, 2010 at 5:26 am
=) arnt we all… ive re written this code like 24 times (yes im counting..) and still get error messages…
Comment by TheSchlummerschurke on February 16, 2010 at 6:20 am
Oh, how embarrassing.
In my Internetbrowser the executing of PHP-Scrips is deaktivated!
Comment by lewisb1000 on February 16, 2010 at 7:10 am
nice. managed to to get it working. thanks