WHERE `username` = 'something' AND `password` = 'something'
cannot edit profile
-
- Posts: 205
- Joined: Mon Jul 09, 2012 11:13 pm
Re: cannot edit profile
Well, then change your query to match your table
<?php while(!$succeed = try()); ?>
- leverkusen
- Posts: 69
- Joined: Sun Nov 18, 2012 10:09 pm
- Location: Belgrade
- Contact:
Re: cannot edit profile
they do match
$checklogin = mysql_query("SELECT * FROM users WHERE username = '".$username."' AND password = '".$password."'");
- leverkusen
- Posts: 69
- Joined: Sun Nov 18, 2012 10:09 pm
- Location: Belgrade
- Contact:
Re: cannot edit profile
1 guy told me that i have to go through the check if the submit button is clicked in the form
- KnightMaire
- Posts: 29
- Joined: Thu May 05, 2011 9:03 pm
Re: cannot edit profile
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.
- leverkusen
- Posts: 69
- Joined: Sun Nov 18, 2012 10:09 pm
- Location: Belgrade
- Contact:
Re: cannot edit profile
there is a problem i cannot find any errors -.-
-
- Posts: 205
- Joined: Mon Jul 09, 2012 11:13 pm
Re: cannot edit profile
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()); ?>