Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user="itgasite"; #a valid username
- $password="itga1111!"; #a password for the username
- $connection = odbc_connect("MSSQLServer", $user, $password);
- if ($connection) {
- echo "Connection established.";
- } else{
- echo odbc_errormsg();
- }
- $query = "SELECT CUSTOMER_NAME FROM CUSTOMERS WHERE (CODE_SUG = 2) AND (HNUM = N'10924') AND (COMPANYNUMBER = N'57431397')";
- $result = odbc_exec($connection, $query);
- odbc_fetch_into($result, $my_array);
- echo mb_detect_encoding($my_array[0]);
- debug($result);
- debug($my_array[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement