Download src/php/php-src/ext/odbc/tests/odbc_exec_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/odbc_exec_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/odbc_exec_002.phpt
-
curl -L -o odbc_exec_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/odbc_exec_002.phpt
651 Bytes
| --TEST-- | |
| odbc_exec(): Getting data from query | |
| --EXTENSIONS-- | |
| odbc | |
| --SKIPIF-- | |
| include 'skipif.inc'; | |
| --FILE-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, 'CREATE TABLE exec2 (TEST INT)'); | |
| odbc_exec($conn, 'INSERT INTO exec2 VALUES (1), (2)'); | |
| $res = odbc_exec($conn, 'SELECT * FROM exec2'); | |
| var_dump(odbc_fetch_row($res)); | |
| var_dump(odbc_result($res, 'test')); | |
| var_dump(odbc_fetch_array($res)); | |
| --CLEAN-- | |
| require 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, 'DROP TABLE exec2'); | |
| --EXPECT-- | |
| bool(true) | |
| string(1) "1" | |
| array(1) { | |
| ["TEST"]=> | |
| string(1) "2" | |
| } | |