#23819 [Opn->Fbk]: odbc_fetch_array() - Problem
| From: | sniper@php.net | Date: | Mon, 26 May 2003 22:03:12 +0000 |
| Subject: | #23819 [Opn->Fbk]: odbc_fetch_array() - Problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40464@lists.php.net to get a copy of this message | ||
ID: 23819
Updated by: sniper@php.net
Reported By: rony at inf dot ufsc dot br
-Status: Open
+Status: Feedback
Bug Type: ODBC related
Operating System: Windows 98
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-05-26 16:56:32] rony at inf dot ufsc dot br
<?
$conn = odbc_connect("Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:/teste.mdb", "", "");
if ($conn) {
$sql = "SELECT * FROM Cliente";
$res = odbc_exec($conn, $sql);
if ($res){
while ($valor = odbc_fetch_array($res)) {
echo $valor["Nome"] ." - ";
echo "". $valor["ID"];
}
}
odbc_close($conn);
} else {
echo "". mysql_error();
}
?>
Send fatal error:
Fatal error: Call to undefined function: odbc_fetch_array() in
c:\arquivos de programas\apache group\apache\htdocs\access\conexao.php
on line 9
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23819&edit=1