RE: [PHP] enhanced_list_box

From: Date: Mon, 12 Nov 2007 16:18:28 +0000
Subject: RE: [PHP] enhanced_list_box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264368@lists.php.net to get a copy of this message
> I am using this function enhanced_list_box. This works > fine. Except the return value is None. How is it possible for it to > return a proper value. It reads a list from a data base. while $row is valid you do stuff. then when $row is invalid, you return it. But maybe you knew that. To return a "proper value"?: while($row...[is something valid]){ $lastValidRow = $row; ... } $row is invalid do something with $lastValidRow i.e.: return it _________________________________________________________________ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

« previous php.general (#264368) next »