diff options
author | Maksim Kozhukh <mkozhukh@ya.ru> | 2014-08-05 15:05:01 +0300 |
---|---|---|
committer | Maksim Kozhukh <mkozhukh@ya.ru> | 2014-08-05 15:05:01 +0300 |
commit | a3f61f91ca50598de2126ea0864b3acc7f56a847 (patch) | |
tree | e858faa1effc6729d7e02d1464f51cd768088f01 /samples/export/excel.php | |
parent | 4fc1e6da2aaf2e9c47c31b2b4d247c3ed99dc9d2 (diff) | |
download | connector-php-a3f61f91ca50598de2126ea0864b3acc7f56a847.zip connector-php-a3f61f91ca50598de2126ea0864b3acc7f56a847.tar.gz connector-php-a3f61f91ca50598de2126ea0864b3acc7f56a847.tar.bz2 |
[update] pdo based samples
Diffstat (limited to 'samples/export/excel.php')
-rw-r--r-- | samples/export/excel.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/export/excel.php b/samples/export/excel.php index 5421bec..fc73a4b 100644 --- a/samples/export/excel.php +++ b/samples/export/excel.php @@ -1,7 +1,7 @@ <?php require_once("../config.php"); - $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass); - mysql_select_db($mysql_db); + $res= new PDO($mysql_server,$mysql_user,$mysql_pass); + require("../../codebase/grid_connector.php"); @@ -10,10 +10,10 @@ $convert = new ConvertService("http://dhtmlxgrid.appspot.com/export/excel"); $convert->excel(); - $grid = new GridConnector($res); + $grid = new GridConnector($res, "PDO"); $config = new GridConfiguration(); - $grid = new GridConnector($res); + $grid = new GridConnector($res, "PDO"); $grid->set_config($config); $grid->render_table("grid50"); ?>
\ No newline at end of file |