note 61757 modified in function.dbase-replace-record by felipe

From: Date: Sun, 18 Jan 2009 17:09:56 +0000
Subject: note 61757 modified in function.dbase-replace-record by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149388@lists.php.net to get a copy of this message
If you get "unexpected error", try to change the assoc array, $row, to an indexed array with array_values(). Example: <?php $row = array_values($row); dbase_replace_record($db, $row, 1); ?> The dbase_replace-function cannot handle an assoc array. Hope this will save someone a headache! ;) --was-- If you get "unexpected error", try to change the assoc array, $row, to an indexed array with array_values(). Example: $row = array_values($row); dbase_replace_record($db, $row, 1); The dbase_replace-function cannot handle an assoc array. Hope this will save someone a headache! ;) http://php.net/manual/en/function.dbase-replace-record.php

« previous php.notes (#149388) next »