problem with dbase_replace_record()

From: Date: Thu, 10 May 2001 11:30:30 +0000
Subject: problem with dbase_replace_record()
Groups: php.db php.general 
Request: Send a blank email to php-db+get-9213@lists.php.net to get a copy of this message
I experienced this problem when I want to replace a record in foxpro database(.dbf). First I was add a record with this syntax and it work : $record[0] = "20000628"; $record[1] = "230 10 10003"; $record[2] = "MY NAME"; $record[3] = "30"; $record[4] = "3002 "; $add = dbase_add_record ($db, $record); if ($add) { echo ('Success'); } else { echo ('Fail'); } And then I want replace the record with this one, the syntax looks similar but I don't why it's not work. I wait for about 15 minutes and my browser still proceed and display nothing : $record[0] = "20000628"; $record[1] = "230 10 10003"; $record[2] = "NAME"; $record[3] = "50"; $record[4] = "5002"; $change = dbase_replace_record ($db, $record, 1); if ($change) { echo ('Success'); } else { echo ('Fail'); } Anyone could help me? Regards; Benny.

« previous php.db (#9213) next »