This function closes a connection to the ODBC source.
Instead of this function, you can also use the wb_close function. ODBC connection is also automatically closed after completed execution of the PHP script (similar to open cursors, non-persistent connections etc.).
Read data from the MySQL server that is connected by means of ODBC data source that is registered as MySQL test, into the string variable. To use the XML API function wb_export_to_XML_buffer, an ODBC connection that is used in DAD definition must be open in advance.
... $odbc_resource = wb_odbc_connect("MySQL test","admin","password"); $dad = "*Customers_mysql_analytDAD"; $resXML = wb_export_to_XML_buffer($connection,$dad,NULL,NULL); wb_odbc_disconnect($odbc_resource); ...