Could someone give me a 10 liner example on how to get a touch ui grid to connect to a mySQL datasource. I’ve got the php that serves up the data (I use it for the standard non-touch grid and it works fine), I’ve tried every permutation,etc … to get it to work to no avail:
Please guys, I’ve spent all weekend on this and any help would be appriciated.
Does this also handle writing back the data to the database, or just filling the grid initially?
The great thing about the other method is that it handled large number of lines very elegantly with dynamic loading.
Sorry Alexandra, I always speak before I read! Obviously you mean the samples included in the download package… I’ll pull them apart and have a look!
Can I send you anything from Italy to thank you?
Unfortunately it was a “virtual” gift, a thought, I can’t exacly send you 10lb of Parma Halm in the post can I?
I hope to enjoy the library enourmously, I’m just a bit confused about the language differences between your normal dhtmlx components and the touch ones, whether dynamic loading is supported or not, things like that …
Yep, I looked at your example and it all boils down to fixing the sqlLite code to mySQL:
<?php
require_once("./../connector/data_connector.php");
/*
if you want to use a different db type
- include correct db_{some}.php
- store opened connection in $db
- set valid $dbtype name
Check the next page for more details
[docs.dhtmlx.com/doku.php?id=dhtm ... ide_others](http://docs.dhtmlx.com/doku.php?id=dhtmlxconnector:server_side_others)
*/
require_once("./../connector/db_sqlite.php");
if (!$db = sqlite_open('common/db', 0777, $sqliteerror)) {
die($sqliteerror);
}
$dbtype = "SQLite";
?>