Giter Site home page Giter Site logo

Comments (7)

mevdschee avatar mevdschee commented on May 8, 2024

The call returns "rows affected", could that be "0"?

from php-crud-api.

rofsky avatar rofsky commented on May 8, 2024

According to your documentation my understanding was that the 0 was rows affected. When I look at my data, it is not updated with the new values per the data object above, which would be consistent with 0 rows affected. I guess my question is however, is there a way to output what was executed then?

from php-crud-api.

mevdschee avatar mevdschee commented on May 8, 2024

You seem to post to primary key "2" with id "115". Are you sure this is what you expect/want?

from php-crud-api.

rofsky avatar rofsky commented on May 8, 2024

AHHH! very good. that must be my problem. While reading your documentation I was a bit confused in the example you have /2 in the URL, and I was under the impression that 2 is the command for update. I am guessing that is the problem. I will try again right now. Thank you so much!

from php-crud-api.

rofsky avatar rofsky commented on May 8, 2024

My guess is also that if I wanted to see the executed query for updateObject I can just return the sql on line 722 of api.php , per my question above.

Thanks so much for the great code and documentation, prompt reply and kindness. Take care!

from php-crud-api.

mevdschee avatar mevdschee commented on May 8, 2024

I'm glad I could help. Thank you for your kind words, have fun with the code!

from php-crud-api.

mevdschee avatar mevdschee commented on May 8, 2024

NB: All 3 drivers have some code to show the executed SQL. Uncomment it in the corresponding "query" function.

from php-crud-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.