. */ /** * @brief List of status for autocompletion * * * @file * @author Laurent Giovannoni * @date $date$ * @version $Revision$ * @ingroup admin */ require_once('core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_request.php'); $db = new Database(); $stmt = $db->query( 'SELECT label_status as tag FROM ' . $_SESSION['tablename']['status'] . " WHERE lower(label_status) like lower(?) order by label_status", array($_REQUEST['what'].'%') ); $listArray = array(); while ($line = $stmt->fetchObject()) { array_push($listArray, $line->tag); } echo '';