jsgrid-php
jsgrid-php copied to clipboard
Not showing anything
I created a Databased named jsgridsample and imported the tables from the createdb.sql file. I saved the files in Xampp/htdocs/jsgrid-php-master I changed the mysql:host to mysql:host=localhost Those are the only changes I've made to the files
Do I need to do something else?
Thank you!!
This should be sufficient. All you need is to create the DB and change the connection string to the database. Be sure the environment is properly configured and the connection string to the DB is correct.
I've done this and I have the same problem. I get the 'JSGrid and PHP Sample' title on the page, but no table.
did you solved this issue
I am having the same issue. I unzipped the folder then changed the config.php to my database and the only thing that shows on screen is "JSGrid and PHP Sample".
I found a version of this that actually works.
https://github.com/rade93/Inline-Table-Insert-Update-Delete-in-PHP-using-jsGrid
I was having the same problem. Only the 'JSGrid and PHP Sample' title. I replaced /public with public in the root index.html. Also replaced /countries with countries and /clients with clients in the sample.js file in the js folder. Worked perfect after that.
This is because of wrong ajax paths is js file "/public/js/sample.js" if you run it from folder
return $.ajax({
type: "GET",
url: "/clients/",
data: filter
});
!!! url: "/clients/" !!!
"Xampp/htdocs/jsgrid-php-master" so the root will be "Xampp/htdocs/"
and will be "Xampp/htdocs/clients" not "Xampp/htdocs/jsgrid-php-master/clients"
move all installation to the root or edit the sample.js and change every url: "/clients/" to url: "clients/" and so one also shold be for the same reason