Re: Re: HTML_quickform setdefaults question

From: Date: Sun, 10 Dec 2006 20:22:13 +0000
Subject: Re: Re: HTML_quickform setdefaults question
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26064@lists.php.net to get a copy of this message
rav k wrote: > Yes I did have var_dump lines as I was trying to figure out if my output was > at least correct - I don't think it is... > > This is the array I get: > array(4) { > ["userid"]=> int(3) > ["profile"]=> string(105) "This is a test profile. The test profile shows > information about the user and their business information." > ["email"]=> string(18) "rav220@hotmail.com" > ["sendmail"]=> int(1) } > > array(1) { ["skillid"]=> int(2) } You can use fetchAll() instead of fetchRow() to get an array of all results. You might need to loop over this array to transform it into a representation that setDefaults() understands, but that depends on how the "skill" elements are defined (e.g. what names they have). Regards, Mark

« previous php.pear.general (#26064) next »