Giter VIP home page Giter VIP logo

Comments (5)

sunnysingh avatar sunnysingh commented on June 16, 2024

Does the other script use the mysqli extension? Also, are you binding any variables to the query or doing a static select?
I would also check for any differences with your setup on your local and remote environments. If it's working on local, then it should work anywhere else.

from database.

LorinWeb avatar LorinWeb commented on June 16, 2024

No, the other script doesn't use mysql. I'm binding the variables

$sql = $db->fetch_rows("SELECT field_1, field_2, field_n-1, field_n FROM
$table WHERE field_1 = ? AND field_2 = ?", array($value_1, $value_2));

That's my current syntax.
Note that the longtext field is not one of the binded variables. The only
solution i found was to change that field to mediumtext. Maybe there's a
different mysql configuration on the remote server.

from database.

sunnysingh avatar sunnysingh commented on June 16, 2024

I will check this out for myself and see if there's an issue with longtext columns. My only conclusion right now is that you have different configurations on your local and remote setups. Note that the framework doesn't do anything special to the query, it's basically a wrapper for http://php.net/manual/en/class.mysqli.php.

from database.

LorinWeb avatar LorinWeb commented on June 16, 2024

Actually for my purpose i realized that a mediumtext field was enough.
Maybe the problem came out cause it's a shared hosting, and they try to
limitate mysql queries. Although when using normal mysql syntax it works,
so it could be a mysqli problem on that partucular configuration. Thank
you, and please, if you update the framework let me know! :-)

from database.

sunnysingh avatar sunnysingh commented on June 16, 2024

Will do, I'll close this issue for now.

from database.

Related Issues (3)

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.