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/grid/01_basic.html | |
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/grid/01_basic.html')
-rw-r--r-- | samples/grid/01_basic.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/samples/grid/01_basic.html b/samples/grid/01_basic.html index 65ac772..ae3c1ff 100644 --- a/samples/grid/01_basic.html +++ b/samples/grid/01_basic.html @@ -8,13 +8,18 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> <div id="gridbox" width="350px" height="550px" style="background-color:white;overflow:hidden"></div> <script> + + function myErrorHandler(type, desc, erData){ + alert("GOT IT!"); + return false; + } + // dhtmlxError.catchError("LoadXML", myErrorHandler); + mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../dhtmlx/imgs/"); mygrid.setHeader("Column A, Column B"); @@ -34,7 +39,7 @@ <div class='code'><code><span style="color: #000000"> <span style="color: #0000BB"><?php <br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">); -<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">mysql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">); +<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB"> new PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">); <br /> </span><span style="color: #0000BB">mysql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">); <br /> <br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">); |