diff options
author | Dmitry <dmitry@dhtmlx.com> | 2012-07-19 12:03:38 +0200 |
---|---|---|
committer | Dmitry <dmitry@dhtmlx.com> | 2012-07-19 12:03:38 +0200 |
commit | 0e9f9cba27e21ff7d0ddbe829f13cb98ccbe638c (patch) | |
tree | fa4ca400d649f2ee402155f612fab08756105779 | |
parent | 44ccc01af314312d08817a89e39b0b2d8a9cbbc3 (diff) | |
download | connector-php-0e9f9cba27e21ff7d0ddbe829f13cb98ccbe638c.zip connector-php-0e9f9cba27e21ff7d0ddbe829f13cb98ccbe638c.tar.gz connector-php-0e9f9cba27e21ff7d0ddbe829f13cb98ccbe638c.tar.bz2 |
add asString sample
-rw-r--r-- | samples/common/05_asstring_connector.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/common/05_asstring_connector.php b/samples/common/05_asstring_connector.php new file mode 100644 index 0000000..78bc4da --- /dev/null +++ b/samples/common/05_asstring_connector.php @@ -0,0 +1,13 @@ +<?php + require_once("../config.php"); + $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass); + mysql_select_db($mysql_db); + + require("../../codebase/data_connector.php"); + $data = new JSONDataConnector($res); + $data->dynamic_loading(100); + $data->asString(true); + $json = $data->render_table("grid50000","item_id","item_nm,item_cd"); + echo "<strong>Generated json:</strong><br>"; + echo $json; +?>
\ No newline at end of file |