note 36950 added to ref.dba

From: Date: Tue, 28 Oct 2003 14:28:04 +0000
Subject: note 36950 added to ref.dba
Groups: php.notes 
Request: Send a blank email to php-notes+get-59423@lists.php.net to get a copy of this message
Example 2 above didn't work for me, as one of the keys in my database was 0 (zero). My code iterated through until it got to the 0 key, and then (as 0 equates to false) it exited there, leaving me scratching my head for quite a while. I finally got round this with the following: $key = dba_firstkey($dbh) while ($key != "") { ..... $key = dba_kextkey($dbh) } ---- Manual Page -- http://www.php.net/manual/en/ref.dba.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36950 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36950&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36950&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59423) next »