#23819 [Com]: odbc_fetch_array() - Problem
| From: | gouldee at paulbunyan dot net | Date: | Thu, 18 Dec 2008 01:07:08 +0000 |
| Subject: | #23819 [Com]: odbc_fetch_array() - Problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132108@lists.php.net to get a copy of this message | ||
ID: 23819
Comment by: gouldee at paulbunyan dot net
Reported By: rony at inf dot ufsc dot br
Status: No Feedback
Bug Type: ODBC related
Operating System: Windows 98
PHP Version: 4.3.1
New Comment:
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 libphp5.so 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()
Previous Comments:
------------------------------------------------------------------------
[2003-06-02 17:28:14] sniper@php.net
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.
------------------------------------------------------------------------
[2003-05-26 17:03:11] sniper@php.net
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
------------------------------------------------------------------------
[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