PHP Undefined variable: odbc_close.... Fatal error: Function name must be a string....
Posted on 2005-04-06
The following code:
$ds = odbc_connect("myTest", "", "");
$shortlist = odbc_do($ds, "
$lname = odbc_result($shortlist, 1);
$fname = odbc_result($shortlist, 2);
$email = odbc_result($shortlist, 3);
Gives me the following errors:
Notice: Undefined variable: odbc_close in c:\webroot\myTest\index.php on line 26
Fatal error: Function name must be a string in c:\webroot\myTest\index.php on line 26
If I omit odbc_close (comment it out), the code executes just fine. But it doesn't solve the problem of the fact that the function is not performing the way I think it's supposed to. Perhaps this is an installation issue? I just installed PHP and am using on this machine for the first time - Windows XP Pro.
Thanks in advance!