. */ /** * @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 description as tag FROM notifications' . " WHERE lower(description) like lower(:what) or lower(notification_id) like lower(:what) order by description", array(":what" => $_REQUEST['what'] . "%") ); $listArray = array(); while ($line = $stmt->fetchObject()) { array_push($listArray, $line->tag); } echo '';