'; $sql='SELECT DISTINCT u.user_id as id,concat(u.firstname," ",u.lastname," ","( ",u.email," )") as name FROM '.$tbl_my_user.' u INNER JOIN '.$track_online_table.' t ON u.user_id=t.login_user_id WHERE t.login_date >'."'".$date_inter."'".' AND (u.firstname like "%'.$search.'%" OR u.lastname like "%'.$search.'%" OR CONCAT(u.firstname," ",u.lastname) like CONCAT("%","'.$search.'","%"))'; if (api_get_setting('allow_social_tool')=='true') { //$sql.=' INNER JOIN '.$tbl_my_user_friend.' uf ON uf.friend_user_id=u.user_id '; } $res=api_sql_query($sql,__FILE__,__LINE__); while ($row=Database::fetch_array($res,'ASSOC')) { $html_form.=''; } $html_form.=''; echo $html_form; ?>