All of the KoolGrid Examples show how to connect to a MySQL Datasource using the OLD METHOD. However, if you are using the current stable MySQL and PHP (which I'm running under MAMP currently), the OLD METHOD (as follows) has been deprecated.
Here is the old method I speak of:
// Create Datasource
$conn = mysql_connect($host, $username, $password);
mysql_select_db($default_dbname, $db_conn);
$ds = new MySQLDataSource($db_conn);
However, the new method would be something like this. But with my lack of experience I can't seem to get this to work. I get the following PHP error but can't understand everything as the KoolGrid.php is obfuscated.
$conn = new mysqli($host, $username, $password, $db);
$ds = $conn;
Warning: mysql_set_charset() expects parameter 2 to be resource, object given in /KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_query() expects parameter 2 to be resource, object given in /KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in /KoolControls/KoolGrid/koolgrid.php on line 1