|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23819 odbc_fetch_array() - Problem
Submitted: 2003-05-26 16:56 UTC Modified: 2003-06-02 17:28 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: rony at inf dot ufsc dot br Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.3.1 OS: Windows 98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
28 - 15 = ?
Subscribe to this entry?

 [2003-05-26 16:56 UTC] 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"];
  } 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-02 17:28 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2008-12-18 01:07 UTC] gouldee at paulbunyan dot net
I have the same problem, except I am running on linux Suse11.

I can run this code from the command line with no error showing
that PHP5 has the odbc Calls.  But, for some reason Apache
when running PHP as a module it doesn't work, and 
none of the odbc php functions work. But, as I said the same
code works fine from the linux prompt.

 PHP Fatal error:  Call to undefined function odbc_fetch_array()
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 12:01:33 2024 UTC