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.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to