|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-02-19 06:42 UTC] lewandowski-d at nsk dot com
I try connect to Oracle 8 by ODBC using odbc_connect. Result is message: Warning: SQL error: [Microsoft][ODBC DLL] Driver does not support this function, SQL state IM001 in SQLConnect in ...... Connecting by ODBC using other methods (not by php) is without problems Help me please PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
Ok , so I wrote whole script below and all error mesages: SCRIPT: <? $lacze = odbc_connect("LIVE","ter515","ter515"); $query = "SELECT ITEM FROM LIVE.WO where WO_NUM='200504A00667' and WO_LINE='0001' "; $result = odbc_exec($lacze, $query); $item=odbc_result($result,1); Echo("Item: $item"); ?> RESULT (PHP 4.0.4): Warning: SQL error: [Oracle][ODBC][Ora]ORA-12154: TNS:nie mo?na wyliczy? nazwy us?ugi , SQL state 08004 in SQLConnect in c:\program files\apache group\apache\htdocs\temp\test.php4 on line 2 Warning: Supplied argument is not a valid ODBC-Link resource in c:\program files\apache group\apache\htdocs\temp\test.php4 on line 8 Warning: Supplied argument is not a valid ODBC result resource in c:\program files\apache group\apache\htdocs\temp\test.php4 on line 9 Item: RESULT (PHP 3.0.17): Item: LA 6000-RSC