Re: Re: QF - Add empty option top of the list
| From: | Köteles Zoltán | Date: | Thu, 13 Jul 2006 09:01:48 +0000 |
| Subject: | Re: Re: QF - Add empty option top of the list | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24641@lists.php.net to get a copy of this message | ||
Mark Wiesemann írta:
Köteles Zoltán wrote:ZoTyAHow can I add an empty option to the top of the list? $query = "Something like $modules = array_merge(array('' => ''), $modules); should be right thing here. Thanks a lot, it works!SELECT m.module_id AS mid, m.module_name AS mname FROM Modules m WHERE m.is_active = 1 ORDER BY m.module_name"; $result = $mdb2->query($query); $modules = $result->fetchAll('', $rekey = true);