Comments (5)
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.
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.
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.
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.
Will do, I'll close this issue for now.
from database.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from database.