php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1566 Cannot get information from database
Submitted: 1999-06-18 11:31 UTC Modified: 1999-06-18 12:39 UTC
From: kenford at infomak dot com Assigned:
Status: Closed Package: DBM/DBA related
PHP Version: 3.0.8 OS: Linux 2.0.33
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 !
Your email address:
MUST BE VALID
Solve the problem:
38 - 9 = ?
Subscribe to this entry?

 
 [1999-06-18 11:31 UTC] kenford at infomak dot com
This work
----------
$id = dba_open("test.db", "n", "db2");
$DATA="hello world";
dba_insert(testID, $DATA, $id);
echo "[" . dba_fetch("testID", $id) . "]\n";
dba_close($id);

These do not work
----------------
$id = dba_open("test.db", "r", "db2");
echo dba_fetch("testID", $id) . "\n";
dba_close($id);



$id = dba_open("test.db", "r", "db2");
echo dba_firstkey($id);
dba_close($id);


$id = dba_popen("test.db", "r", "db2");
echo dba_fetch("testID", $id) . "\n";
dba_close($id);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 12:39 UTC] sas at cvs dot php dot net
There is a bug in PHP 3.0.8's version of dba_db2.c. Upgrade to 3.0.9 or apply the following patch:

http://cvs.php.net/cvsweb.cgi/functions/dba_db2.c.diff?r1=1.8&r2=1.9
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 21 15:01:23 2021 UTC