Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update.php problems #1

Closed
SaadAhmedSalim opened this issue Nov 1, 2020 · 2 comments
Closed

update.php problems #1

SaadAhmedSalim opened this issue Nov 1, 2020 · 2 comments

Comments

@SaadAhmedSalim
Copy link
Owner

when I try to update it affects all of my rows except their password. need to fix this issue.

$query = "update users set name='$_POST[name]',email='$_POST[email]',mobile='$_POST[mobile]',address='$_POST[address]' ";
$query_run = mysqli_query($connection,$query);

need to fix this condition issue using session cookie.

@SaadAhmedSalim SaadAhmedSalim pinned this issue Nov 1, 2020
@SaadAhmedSalim
Copy link
Owner Author

when I try to update it affects all of my rows except their password. need to fix this issue.

$query = "update users set name='$_POST[name]',email='$_POST[email]',mobile='$_POST[mobile]',address='$_POST[address]' ";
$query_run = mysqli_query($connection,$query);

need to fix this condition issue using session cookie.

Problem solved

@SaadAhmedSalim
Copy link
Owner Author

solved this problem.. updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant