summaryrefslogtreecommitdiffstats
path: root/samples/export/excel.php
diff options
context:
space:
mode:
authorStanislau Wolski <stanislau.wolski@gmail.com>2014-11-03 20:13:33 +0300
committerStanislau Wolski <stanislau.wolski@gmail.com>2014-11-03 20:13:33 +0300
commitb4f88ab0656d98e41d446f6f3fa7ff5ee941a48d (patch)
treeb747c23c354d7e18ab21d72698d2124d778e2b3a /samples/export/excel.php
parentc1a155bd754eb89137a45056e2ef9b1d13b2501c (diff)
parentaafef026fb6b024ae25ebc79680840049ca718a5 (diff)
downloadconnector-php-b4f88ab0656d98e41d446f6f3fa7ff5ee941a48d.zip
connector-php-b4f88ab0656d98e41d446f6f3fa7ff5ee941a48d.tar.gz
connector-php-b4f88ab0656d98e41d446f6f3fa7ff5ee941a48d.tar.bz2
Merge branch 'pdo'
Diffstat (limited to 'samples/export/excel.php')
-rw-r--r--samples/export/excel.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/samples/export/excel.php b/samples/export/excel.php
index 5421bec..6c0f3f8 100644
--- a/samples/export/excel.php
+++ b/samples/export/excel.php
@@ -1,7 +1,8 @@
<?php
require_once("../config.php");
- $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
- mysql_select_db($mysql_db);
+ require_once('../../codebase/db_pdo.php');
+ $res= new PDO($mysql_server,$mysql_user,$mysql_pass);
+
require("../../codebase/grid_connector.php");
@@ -10,10 +11,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