help with intermittent problem

From: Date: Wed, 05 Jul 2000 11:24:54 +0000
Subject: help with intermittent problem
Groups: php.db 
Request: Send a blank email to php-db+get-858@lists.php.net to get a copy of this message
Hi, I've compiled and run php3 and php4 with openlink odbc support and I'm having some strange problems. With a basic script I get this output : Warning: SQL error: [OpenLink][ODBC][Driver]General error, SQL state S1000 in SQLExecDirect in /www3/htdocs/odbc/test_connect.php3 on line 15 If I hit the reload button a few times (without changing anything) I get this output : Warning: SQL error: [iODBC][Driver Manager]Function sequence error, SQL state S1010 in SQLAllocStmt in /www3/htdocs/odbc/test_connect.php3 on line 15 Now this just seems plain wierd to me. Has anybody seen this before? This is the script : <? putenv( "ODBCINI=/etc/odbc.ini" ); $fd = odbc_connect( "ODBC_test", "sqlusertest", "scum2000" ); $res = odbc_exec( $fd, "select * from test1" ); // <-- this is line 15 //odbc_fetch_row( $res ); //$num = odbc_num_rows( $res ); odbc_close( $fd ); ?> any help would be _hugely_ appreciated. bye Simon

« previous php.db (#858) next »