I have one database with several tables. I am using a simple HTML form on the front page of my site to select the table. The main page using drasticGrid gets the tablename from the previous page via POST:
and I add it to the $src definition like so:
$src = new drasticSrcMySQL(localhost, web, "", Headends, $table, $options);
I have verified the data is being passed properly to the main page via POST, but the table doesn't load, I just get the spinning star.
If I replace "$table" with the actual name of the table, it works fine.
Is this a stupid noob mistake? I've been reading as much as I can find out variables and PHP, and I can't figure out what I'm doing wrong. =(
The grid uses an Ajax call to get the data into it.
Therefore this call doen't give the right data back and the star spins and spins,.... This also explains why it does work if you name the table name in the php file, not via the (GET OR POST) variables.
So the conclusion is that, how sadly, the grid wasn't developed for the purpose of reading out critical information via GET or POST. I am thinking about a redesign that solves this problem.