Page 5 of 5

Re: cannot edit profile

Posted: Sun Jan 13, 2013 2:30 pm
by ExtremeGaming
Well, then change your query to match your table
[syntax=sql]WHERE `username` = 'something' AND `password` = 'something'[/syntax]

Re: cannot edit profile

Posted: Sun Jan 13, 2013 5:47 pm
by leverkusen
they do match [syntax=php]$checklogin = mysql_query("SELECT * FROM users WHERE username = '".$username."' AND password = '".$password."'");[/syntax]

Re: cannot edit profile

Posted: Sun Jan 13, 2013 6:00 pm
by leverkusen
1 guy told me that i have to go through the check if the submit button is clicked in the form

Re: cannot edit profile

Posted: Mon Jan 14, 2013 3:17 am
by KnightMaire
Basic debugging. Start at the bottom and work your way to the top (looking for expected results). Along the way of echo'ing values and checking if values are set you will run across your error where the actual result is not what is expected. Once you get this debugging concept down, you will never have to post topics like this.

Re: cannot edit profile

Posted: Thu Jan 31, 2013 12:58 am
by leverkusen
there is a problem i cannot find any errors -.-

Re: cannot edit profile

Posted: Thu Jan 31, 2013 6:43 pm
by ExtremeGaming
If there are no errors then check on the condition statements you are using. Check that everything that you are checking with isset() is actually set. Make sure to check spelling and case.