cannot edit profile

Ask about a PHP problem here.
ExtremeGaming
Posts: 205
Joined: Mon Jul 09, 2012 11:13 pm

Re: cannot edit profile

Post by ExtremeGaming »

Well, then change your query to match your table
WHERE `username` = 'something' AND `password` = 'something'
<?php while(!$succeed = try()); ?>
User avatar
leverkusen
Posts: 69
Joined: Sun Nov 18, 2012 10:09 pm
Location: Belgrade
Contact:

Re: cannot edit profile

Post by leverkusen »

they do match
$checklogin = mysql_query("SELECT * FROM users WHERE username = '".$username."' AND password = '".$password."'");
User avatar
leverkusen
Posts: 69
Joined: Sun Nov 18, 2012 10:09 pm
Location: Belgrade
Contact:

Re: cannot edit profile

Post by leverkusen »

1 guy told me that i have to go through the check if the submit button is clicked in the form
User avatar
KnightMaire
Posts: 29
Joined: Thu May 05, 2011 9:03 pm

Re: cannot edit profile

Post 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.
User avatar
leverkusen
Posts: 69
Joined: Sun Nov 18, 2012 10:09 pm
Location: Belgrade
Contact:

Re: cannot edit profile

Post by leverkusen »

there is a problem i cannot find any errors -.-
ExtremeGaming
Posts: 205
Joined: Mon Jul 09, 2012 11:13 pm

Re: cannot edit profile

Post 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.
<?php while(!$succeed = try()); ?>
Post Reply