summaryrefslogtreecommitdiffstats
path: root/samples/export/excel.php
diff options
context:
space:
mode:
authorMaksim Kozhukh <mkozhukh@ya.ru>2014-08-05 15:05:01 +0300
committerMaksim Kozhukh <mkozhukh@ya.ru>2014-08-05 15:05:01 +0300
commita3f61f91ca50598de2126ea0864b3acc7f56a847 (patch)
treee858faa1effc6729d7e02d1464f51cd768088f01 /samples/export/excel.php
parent4fc1e6da2aaf2e9c47c31b2b4d247c3ed99dc9d2 (diff)
downloadconnector-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.php8
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