MySQL data not showing
MySQL data not showing
Hello,
I am new to datatables and using the editor option for a existing MySQL db that I have and have used for other test apps. I used the generator and set it up with a new db, then created that db in phpmyadmn, imported the sql that was generated. Loaded the files that the generator created changed the config.php to reflect the proper mysql login.
It all seems to work, except the initial one that has data shows they same as the test one with no data at all. When you try to add you get a An error has occurred - Please contact the system administrator.
Is there some permissions that need to be set.
I did no modifications to the generated files except the config.php file as instructed.
This is the same for both with and without data.
This is the generated one with no data yet as I can not add any cause the error.
I removed this link.
my php is 5.2.17
Thanks in advance.
I am new to datatables and using the editor option for a existing MySQL db that I have and have used for other test apps. I used the generator and set it up with a new db, then created that db in phpmyadmn, imported the sql that was generated. Loaded the files that the generator created changed the config.php to reflect the proper mysql login.
It all seems to work, except the initial one that has data shows they same as the test one with no data at all. When you try to add you get a An error has occurred - Please contact the system administrator.
Is there some permissions that need to be set.
I did no modifications to the generated files except the config.php file as instructed.
This is the same for both with and without data.
This is the generated one with no data yet as I can not add any cause the error.
I removed this link.
my php is 5.2.17
Thanks in advance.
This discussion has been closed.
Replies
That's the problem. The Editor PHP libraries require PHP 5.3 or newer. PHP 5.2 is no no longer maintained by the PHP devs, and was end of life years ago. IF you can, I'd suggest upgrading.
Allan
Thanks
I do have libraries for 5.2 which I can mail you, and they'll work okay, but they use an old and now unsupported API. They also don't have all of the features of the newer libraries (like the Join class), they aren't documented (other than an install tutorial: http://editor.datatables.net/tutorials/installing-1.1 ) and they won't be updated.
PHP 5.3 (itself now EOL! - the current version is 5.5.0) introduces a lot of great new features into PHP and is well worth the upgrade!
Allan
I have it changed to 5.3.26 and I did get the above one working. I need to look at the other one as it was an existing db.
BTW. I am now going to split the php for the server and the html & Java for the mobile app integration for mobile devices.
Do you have a sqlite version for local on the device using the editor. I know you have the server and local storage. So might have a few questions for this one. Afterwards, I will post how we did it for others to use for the local side.
Thanks
As in using the HTML5 local database? I did put together an example of that a while back actually. Its basically a bit like this: http://editor.datatables.net/release/DataTables/extras/Editor/examples/localstorage.html . Just a bit more complex.
Allan
Thanks
Allan