|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-22 19:42 UTC] kalowsky@php.net
[2003-10-23 14:34 UTC] brian dot garvis at mascommsys dot com
[2003-10-30 18:49 UTC] brian dot garvis at mascommsys dot com
[2003-10-31 09:38 UTC] kalowsky@php.net
[2003-10-31 17:40 UTC] brian dot garvis at mascommsys dot com
[2003-11-01 10:37 UTC] kalowsky@php.net
[2003-11-02 07:42 UTC] brian dot garvis at mascommsys dot com
[2003-11-02 11:10 UTC] kalowsky@php.net
[2003-11-02 11:18 UTC] kalowsky@php.net
[2003-12-15 07:15 UTC] boa at weboa dot org
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
Description: ------------ odbc_connect fails to connect to a Dbase 5 database which resides on a separate Windows 2000 machine using Microsoft ODBC Data Source Administrator. If move database to local machine and point ODBC to local database, then works. PHP reports error: Warning: SQL error: [Microsoft][ODBC dBase Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides., SQL state S1009 in SQLConnect in C:\DEMO\wwwroot\login.php on line 16 Reproduce code: --------------- <?php //Connection statement // *** Start the session include "./WebFront/-general includes-/functions.php"; session_start(); // *** Validate request to log in to this site. $KT_LoginAction = $HTTP_SERVER_VARS["REQUEST_URI"]; if (isset($HTTP_POST_VARS["id"])) { $KT_valUsername = $HTTP_POST_VARS['id']; $KT_fldUserAuthorization = "SecurityLevel"; $KT_redirectLoginSuccess = "WebFront/Generated/Lobby.php"; $KT_redirectLoginFailed = "login.php"; $odbcSASI=odbc_connect("DEMOSASI","Administrator","z911!ABC"); $odbcLOGIN=odbc_connect("DEMOLOGIN","",""); $resultRS=odbc_exec($odbcSASI,"SELECT * FROM AUSR WHERE UCASE([USERID])='" . strtoupper(noquotes($_POST['id'])) . "'") or die(odbc_errormsg()); $tempArray=odbc_fetch_array($resultRS); Expected result: ---------------- Successful Database connection Actual result: -------------- Warning: SQL error: [Microsoft][ODBC dBase Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides., SQL state S1009 in SQLConnect in C:\DEMO\wwwroot\login.php on line 13 Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in C:\DEMO\wwwroot\login.php on line 15 [Microsoft][ODBC dBase Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.