diff options
author | Maksim <max@dhtmlx.com> | 2011-07-18 18:21:10 +0300 |
---|---|---|
committer | Maksim <max@dhtmlx.com> | 2011-07-18 18:21:10 +0300 |
commit | 5c2afae6cf595c981155ac68501ac2d1af77db54 (patch) | |
tree | b07de6379fb3eb540df732a57061cafd05288599 /samples/export/excel.php | |
download | connector-php-5c2afae6cf595c981155ac68501ac2d1af77db54.zip connector-php-5c2afae6cf595c981155ac68501ac2d1af77db54.tar.gz connector-php-5c2afae6cf595c981155ac68501ac2d1af77db54.tar.bz2 |
* import of php connector v1.2
Diffstat (limited to 'samples/export/excel.php')
-rw-r--r-- | samples/export/excel.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/samples/export/excel.php b/samples/export/excel.php new file mode 100644 index 0000000..c9c9581 --- /dev/null +++ b/samples/export/excel.php @@ -0,0 +1,16 @@ +<?php + require_once("../config.php"); + $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass); + mysql_select_db($mysql_db); + + + require("../../codebase/grid_connector.php"); + require("../../codebase/convert.php"); + + $convert = new ConvertService("http://dhtmlxgrid.appspot.com/export/excel"); + $convert->excel(); + + $grid = new GridConnector($res); + $grid->set_config(new GridConfiguration()); + $grid->render_table("grid50"); +?>
\ No newline at end of file |