#32321 [Opn]: SQL state 00000 in SQLConnect
ID: 32321
User updated by: jogo_2 at yahoo dot com
Reported By: jogo_2 at yahoo dot com
Status: Open
Bug Type: ODBC related
Operating System: Windows XP
PHP Version: 5.0.3
New Comment:
I also have installed mdac 2.8
Previous Comments:
------------------------------------------------------------------------
[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
Thread (4 messages)