I am using some coding from datatables - and yes a newbie,
I have problems with the data not being pulled and after some debugging, I have this error:
Parse error on line 1:
SSP: : simple($_GET,
^
Expecting '{', '['
I have attached the snippet of coding and have tried several syntax but can not seem to get it right. Long day.
I have also posted the coding from the entire page...
Could someone be as so kind as to help with it? Thank you...
That's a good question! I should have dump the vars. Here are the results of doing so: ( I starred out the pass -didn't want to post that!)
datatables_demoidArrayarray(4) { ["user"]=> string(4) "root" ["pass"]=> string(12) "************" ["db"]=> string(11) "testexample" ["host"]=> string(9) "localhost" } array(0) { } {"error":"An error occurred while connecting to the database. The error reported by the server was: could not find driver"}
I have checked to ensure the drivers are installed by doing this: (and they did exist and I got my php info too.)
And I checked the php.ini too.
I do not know what else to check - pathing problem ? but where?
Once again Ray, I am lost..sigh
<?PHPif (!function_exists('mysqli_init') && !extension_loaded('mysqli')) { echo 'We don\'t have mysqli!!!';} else { echo 'Phew we have it!';}?><?phpphpinfo(); ?>
Added note. I am using Web Matrix 3. One site uses Php 5.3 and it reports that it has mysqli.
The site that I am having problems with is set to use PHP 5.4 and says it DOESN'T have mysqli!
Each site can be set to a different language etc.
So, how do I fix that site that can not find the mysqli?
Thank you Ray -
I am going to try your coding and the advice....
I really like PHP, and gaining more experience with it and with the sometimes problems.
But a lot to learn yet.
I have a lot of experience with other languages (some arcade now - ha ha!) and with XML processing (bunches!)
Right now, I am trying to resolve the pathing issue to the new installed version of PHP - it keeps showing the old version - boo! I think once that is resolved, its going to be easier.
Like eating an elephant - one bite at a time....
SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns );