Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- $database = 'PT';
- $server = '50.247.***.***';
- $user = '***********';
- $password = '********';
- $port = '********';
- var_dump('---------- 1 -------------');
- $connection = odbc_connect('Driver={Unify SQLBase};Server=' . $server . ';dbname=' . $database . ';dbdir=/opt/Unify/SQLBase/;ini=/opt/Unify/SQLBase/sql-theoni.ini;', $user, $password);
- $sql = "SELECT MAX(WPPSONO) FROM IMPORTWEBORDHDR";
- var_dump('---------- 2 -------------');
- try {
- $orders = odbc_exec($connection, $sql);
- } catch (Exception $e) {
- // Does not enter here
- }
- // Does not get to this point. Other SQLs seem to work, or at least do not fall in error.
- var_dump('---------- 3 -------------');
- var_dump($orders);
- odbc_result_all($orders, "border=1");
- odbc_close($connection);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement