situation 🙂

i have a web application run smoothly in a windows 2000 os
with office 97 installed, php 4.2.2 installed.

i just got another new computer with win2000 also and installed with office 97 and php 4.2.3
i want to set this comp as backup server.

after i copy all my app file and the php.ini file to the new pc, the application can only show the record set but can update, delete and adding new records to the database.

i use the script below to test in the two computer,

RESULT

pc with php 4.2.2
ok with add, update, delete and view recordset

pc with php 4.2.3
ok with view recordset,
fail to add, update and delete

my advice

don't install php 4.2.3,
it seems that it contains some bugs against the Microsoft office...
or ADODB or .... whatever...

<?
include("../cls/onliwill.onli");
include("../cls/onli_db.onli");

function rs_view($rs){
while(!$rs->eof){
echo $rs->fields["ID"]->value;
echo "&nbsp;&nbsp;&nbsp;";
echo $rs->fields["ANAME"]->value;
echo "<br>";
$rs->movenext();
}
echo "<hr>";
}

$db = new onli_db();
$conn = $db->db_open("db1.mdb");

//
$sql = "select * from account";
$rs = $conn->execute($sql);
rs_view($rs);
$rs->close();
// +----+
// | ok |
// +----+
/
/

/
echo "updating";
$sql = "UPDATE account SET ANAME='updated value' WHERE ID=2";
$conn->execute($sql);
// +--------+
// | failed |
// +--------+
/
/

/
echo "deleting";
$sql = "DELETE FROM account WHERE ID=2";
$conn->execute($sql);
// +--------+
// | failed |
// +--------+
/
/

/
echo "add";
$sql = "INSERT INTO account (ANAME) VALUES ('new add value')";
$conn->execute($sql);
// +--------+
// | failed |
// +--------+
/
/
?>

    I havn't try PHP 4.2.3, but I think maybe your access database is mark as read only on your backup win2k filesystem or DSN setting.

      the database is writable.

      once i uninstalled the php 4.2.3 from the backup pc
      and install php 4.2.2 into that pc, the web application then can function.

      therefore, i can confirm that no problem in the filesystem or php.ini or database properties that can prevent the web application from writing into it.

      i use dsnless connection to access to the database.

      i recommend u try install php 4.2.3 to test, if it is true,
      then maybe we shall urge more people who use access database not to update their php 4.2.2 for the time being.

        oic...
        why don't you email to PHP group about this error? _

          like the title,
          and this is what i am doing now...
          hopefully...

            latest information regarding this problem can be accessed from
            php bug contact

            http://bugs.php.net/bug.php?id=19373

            sincerely,
            Jimson Chang

            • a thing to note on 911.
              if the islamic terrorist really want to attack,
              they won't choose the western calendar 911 date, they will choose islamic calendar that represent 911 date.
              17 days later
              Write a Reply...