QuickForm_advmultiselect - throwing error (CORRECTION)
| From: | l Burnerheimerton | Date: | Mon, 29 Aug 2005 15:08:39 +0000 |
| Subject: | QuickForm_advmultiselect - throwing error (CORRECTION) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20633@lists.php.net to get a copy of this message | ||
I supply the data:
$people = $db->getAssoc("SELECT person_ID,
CONCAT(lastName, \", \", firstName) FROM people WHERE
city_ID = 2");
That gives me an associative array of:
ID (int) and NAME (char)
The page works fine. Upon submission, I get the
following:
Array
(
[people] => Array
(
[0] => 16
)
[send] => Send
)
Warning: Invalid argument supplied for foreach() in
c:\pear\lib\HTML\QuickForm\advmultiselect.php on line
566
** It ONLY throws that error when the list of
available choices is empty.
Any ideas?
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs