#32321 [Opn->Fbk]: SQL state 00000 in SQLConnect
| From: | sniper@php.net | Date: | Fri, 18 Mar 2005 18:26:30 +0000 |
| Subject: | #32321 [Opn->Fbk]: SQL state 00000 in SQLConnect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75483@lists.php.net to get a copy of this message | ||
ID: 32321
Updated by: sniper@php.net
Reported By: jogo_2 at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: ODBC related
Operating System: Windows XP
PHP Version: 5.0.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-03-15 19:46:57] jogo_2 at yahoo dot com
I also have installed mdac 2.8
------------------------------------------------------------------------
[2005-03-15 19:42:16] jogo_2 at yahoo dot com
Description:
------------
I'm using IIS from Windows XP and PHP 5.0.3
This code:
$cx = odbc_connect("BDNEO", "", "");
returns this error:
Warning: odbc_connect() [function.odbc-connect]: SQL error: , SQL state
00000 in SQLConnect in D:\tr\webroot\neoturismo\prueba3.php on line 8
All my file permissions are right and there's no user or password.
I tried User DSN and System DSN, both with the same result
What am i doing wrong?
Reproduce code:
---------------
<html>
<head>
</head>
<body>
</body>
<h1>Prueba de BD</h1>
<?php
$cx = odbc_connect("BDNEO", "", "");
odbc_close($cx);
?>
</html>
Expected result:
----------------
Connect to ODBC
Actual result:
--------------
Warning: odbc_connect() [function.odbc-connect]: SQL error: , SQL state
00000 in SQLConnect in D:\tr\webroot\neoturismo\prueba3.php on line 8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32321&edit=1