From bf98684eae84d62b06cf3268c8da89ff7d6b4cc6 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 22 Jul 2019 20:21:40 +0200 Subject: [PATCH] Clean code , remove useless comment --- html/fid_card.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/html/fid_card.php b/html/fid_card.php index 57577bb18..657e143c6 100644 --- a/html/fid_card.php +++ b/html/fid_card.php @@ -117,15 +117,12 @@ else } } - -/* create a filter based on j */ -/*$sql_str="select f_id, vw_name,quick_code,vw_description ". - " from vw_fiche_attr where ". - " ( vw_name ilike '%'||$1||'%' or quick_code ilike $2||'%' or vw_description ilike '%'||$3||'%') ". - $filter_card; -*/ - -$sql_str="select distinct f_id from fiche join fiche_detail using (f_id) where ad_id in (9,1,23) and ad_value ilike '%'||$1||'%' ".$filter_card.' limit 12'; +$sql_str="select distinct f_id + from fiche + join fiche_detail using (f_id) + where + ad_id in (9,1,23) + and ad_value ilike '%'||$1||'%' ".$filter_card.' limit 12'; $fid=$http->request("FID");