ODBC Failures
| From: | David Busby | Date: | Mon, 01 Jul 2002 21:29:26 +0000 |
| Subject: | ODBC Failures | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104786@lists.php.net to get a copy of this message | ||
List,
My ODBC connection is failing it seems...I can run this code just fine...odbc_connect and odbc_pconnect seem to work...the odbc_prepare even works just fine...but as soon as I execute (with odbc_execute, odbc_exec, or odbc_do it fails...any ideas?
<?php
$db = odbc_pconnect("Desire","sa", "xxxxxxxx");
echo "Database Connection:".$db."<br>";
$sql = odbc_prepare($db, "execute spGetItems");
echo "Prepared SQL id:".$sql."<br>";
// This line will fail
$rs = odbc_execute($sql);
?>