%META:TOPICPARENT{name="CodeSamples"}% {{{
putenv("LD_LIBRARY_PATH=/dbs/openlink/v40/lib"); putenv("ODBCINI=/dbs/openlink/v40/bin/odbc.ini"); putenv("ODBCINSTINI=/dbs/openlink/v40/bin/odbcinst.ini"); putenv("PATH=$PATH:/dbs/openlink/v40/bin"); $dsn="OpenLink"; $uid="sa"; $pwd="??????????"; $query="Select * from Customers"; $db=odbc_connect($dsn, $uid, $pwd); $results=odbc_exec($db, $query); odbc_result_all($results); ?> }}}