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 problem #71

Open
quevlu opened this issue Feb 24, 2016 · 1 comment
Open

Update problem #71

quevlu opened this issue Feb 24, 2016 · 1 comment

Comments

@quevlu
Copy link

quevlu commented Feb 24, 2016

Hi,

When you perform a query that updates a record and this remains unchanged but the query returns false could run normally without any error.

  • Solved -

I solved it by making the condition of the if is equal to or greater than 0

if($query >=0){
return true;
}else{
return false;
}

@francopan
Copy link

I noticed the same thing, but I would suggest also checking via javascript if anything was changed to avoid unnecessary connection to the database and processing stuff in the server.

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

2 participants