ODBC-Links resource
| From: | samsom, debra | Date: | Tue, 06 Feb 2001 16:23:05 +0000 |
| Subject: | ODBC-Links resource | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-5414@lists.php.net to get a copy of this message | ||
After upgrading to PHP4.0.4-win-20001210 I am now getting the following
errors on my odbc_close statement:
Warning: Supplied argument is not a valid ODBC_Link resource in (path of
.php file). What am I doing wrong, or what am I missing.
$conn = odbc_connect("PO_Hist", "userid", "password");
$q = 'Select * from PH_Hist';
$cursor = odbc_exec($conn, $q);
while (odbc_fetch_row ($cursor) == true)
{
$vendor =odbc_result($cursor, "Vendor Name");
$buyer =odbc_result($cursor, "Buyer Name");
etc etc....
$x = odbc_close($conn); (here is where I get the error)
Debra Samsom
Bristol Aerospace Ltd.
(204) 775-8331 3402
dsamsom@bristol.ca