diff --git a/tests/odbc-display.php b/tests/odbc-display.php new file mode 100644 index 00000000000..f79a854aea8 --- /dev/null +++ b/tests/odbc-display.php @@ -0,0 +1,19 @@ + diff --git a/tests/odbc-t1.php b/tests/odbc-t1.php new file mode 100644 index 00000000000..90cb97910f5 --- /dev/null +++ b/tests/odbc-t1.php @@ -0,0 +1,38 @@ + +
++Dropping table "php3_test" + +- OK
+Create table "php_test" + + - OK
+Table Info:
+
Name | +Type | +Length | +
---|---|---|
+ | + | + |
+
+">Proceed to next test +| Change login information + + + +
+ + + + diff --git a/tests/odbc-t3.php b/tests/odbc-t3.php new file mode 100644 index 00000000000..edfdc658f89 --- /dev/null +++ b/tests/odbc-t3.php @@ -0,0 +1,95 @@ + + ++Clearing table "php_test" + + - OK
+Inserting into table "php_test" + + - OK
+
A | B | C | D | +
---|---|---|---|
test-1 | 1001 | 100.01 | php - values 1 | +
test-2 | 1002 | 200.02 | php - values 2 | +
test-3 | 1003 | 300.03 | php - values 3 | +
test-4 | 1004 | 400.04 | php - values 4 | +
test-5 | 1005 | 500.05 | php - values 5 | +
+
+">Proceed to next test +| Change login information + +
+ + + + diff --git a/tests/odbc-t4.php b/tests/odbc-t4.php new file mode 100644 index 00000000000..10e8f4b2d96 --- /dev/null +++ b/tests/odbc-t4.php @@ -0,0 +1,91 @@ + + ++ +
+Updating table "php_test" +1002 for update'))){ + $cursor = odbc_cursor($result); + if(($upd = odbc_prepare($conn,"update php_test set a=?, b=? where current of $cursor"))){ + while(odbc_fetch_row($result)) { + $params[0] = odbc_result($result, 1) . "(*)"; + $params[1] = odbc_result($result, 2) + 2000; + odbc_execute($upd, $params); + } + odbc_commit($conn); + } + } + if($result && $upd){ +?> + - OK
+
A | B | C | D | +
---|---|---|---|
test-1 | 1001 | 100.01 | php3 - values 1 | +
test-2 | 1002 | 200.02 | php - values 2 | +
test-3(*) | 3003 | 300.03 | php - values 3 | +
test-4(*) | 3004 | 400.04 | php - values 4 | +
test-5(*) | 3005 | 500.05 | php - values 5 | +
+ Note: If you reload this testpage, + the three last rows will contain different values in columns A and B + |
+
+Images in database"; + while(odbc_fetch_into($res, &$imgs)){ + echo "$imgs[0] : \n
"; + } + }else{ + echo "Couldn't execute query"; + } + echo "\n