. */ /** * File : subfolders_list_by_name.php * * List of subfolders for autocompletion * * @package Maarch Framework 3.0 * @version 3 * @since 10/2005 * @license GPL * @author Laurent Giovannoni */ $db = new Database(); $stmt = $db->query("SELECT doctypes_second_level_label as tag FROM " .$_SESSION['tablename']['doctypes_second_level'] ." WHERE lower(doctypes_second_level_label) like lower(?) and enabled = 'Y' ORDER BY doctypes_second_level_label", array($_REQUEST['what'].'%')); //$db->show(); $listArray = array(); while($line = $stmt->fetchObject()) { array_push($listArray, $line->tag); } echo "";