Ok, Mr. Becchi, Thank You for your response. I will try to modify the kaSearch.php. <br><br>And I'm sorry i replied directly to your personal email. I didn't notice the email address. I thought it went directly to mailing list.<br><br>-don-<br><br><b><i>Lorenzo Becchi &lt;lorenzo@ominiverdi.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Donny, better to go on with the thread on the mailing list so that <br>others can benefit too (please remember to reply all).<br><br>donny wicaks wrote:<br>&gt; Thank You very much for your response, Mr. Lorenzo Becchi.<br>&gt;<br>&gt; So, I should customize the search.php file. Is it the "kaSearch.php"?<br>&gt; How should I modify the file, Sir?<br>&gt;<br>yes Don, kaSearch.php [1] is the file you have to edit.<br>How? you need to know a bit of PHP and HTML.<br><br>regards<br>Lorenzo<br><br>[1] htdocs/tools/search/kaSearch.php<br><br><br><br><br>&gt;
 -don-<br>&gt;<br>&gt;<br>&gt;<br>&gt; */Lorenzo Becchi <lorenzo@ominiverdi.com>/* wrote:<br>&gt;<br>&gt;     Hi Donny,<br>&gt;     if I've understood your problem, you don't need to use the default<br>&gt;     search.php file for your search.<br>&gt;     That file use mapserver to perform searches and you have a better<br>&gt;     system<br>&gt;     that is your postgres db.<br>&gt;     what you have to do is customize the search.php to avoid it to go and<br>&gt;     ask to mapserver but directly to your db. With a little join of<br>&gt;     tables<br>&gt;     you can have your search as you like.<br>&gt;<br>&gt;     regards<br>&gt;     lorenzo<br>&gt;<br>&gt;<br>&gt;     donny wicaks wrote:<br>&gt;     &gt; Hi, All<br>&gt;     &gt;<br>&gt;     &gt; I'm Donny Wicaksono from Indonesia. i'm developing a web-gis. I use<br>&gt;     &gt; ka-map and postgis as database.<br>&gt;     &gt;<br>&gt;     &gt; I have difficulties, i really hope anyone can help me.. :)<br>&gt;    
 &gt;<br>&gt;     &gt; I'm developing accident occurrences in a certain location, for<br>&gt;     example<br>&gt;     &gt; in one district. They are displayed as points in ka-map. The<br>&gt;     &gt; occurrences are yearly, in 2004, 2005, and 2006. The map and the<br>&gt;     &gt; points have already successfully displayed. The identify<br>&gt;     function per<br>&gt;     &gt; point is working and also is the search function.<br>&gt;     &gt;<br>&gt;     &gt;<br>&gt;     &gt; This is my map file in Layer part:<br>&gt;     &gt; .................................<br>&gt;     &gt; LAYER<br>&gt;     &gt; NAME 'accident 2006'<br>&gt;     &gt; GROUP 'Accident 2006'<br>&gt;     &gt; TYPE POINT<br>&gt;     &gt; CONNECTIONTYPE postgis<br>&gt;     &gt; CONNECTION "host=localhost user='postgis' password=password<br>&gt;     &gt; dbname='car_accidents'"<br>&gt;     &gt; DATA 'coordinates FROM cases'<br>&gt;     &gt; FILTER "extract(year from date)='2006'"<br>&gt;     &gt;<br>&gt;    
 &gt; METADATA<br>&gt;     &gt; 'wms_title' 'cases'<br>&gt;     &gt; 'queryable' 'true'<br>&gt;     &gt; 'searchfield' 'car_type'<br>&gt;     &gt; 'fields' 'car_type:Car Type,accident_type:Accident<br>&gt;     &gt; Type,description:Description,date:Date,time:Time,time_zone:Time<br>&gt;     Zone'<br>&gt;     &gt; END<br>&gt;     &gt; STATUS on<br>&gt;     &gt; TRANSPARENCY 100<br>&gt;     &gt; PROJECTION<br>&gt;     &gt; 'proj=longlat'<br>&gt;     &gt; 'ellps=WGS84'<br>&gt;     &gt; 'datum=WGS84'<br>&gt;     &gt; 'no_defs'<br>&gt;     &gt; ''<br>&gt;     &gt; END<br>&gt;     &gt; LABELITEM 'car_type'<br>&gt;     &gt; CLASS<br>&gt;     &gt; TEMPLATE "kueri.html"<br>&gt;     &gt; NAME 'Year 2006'<br>&gt;     &gt; STYLE<br>&gt;     &gt; SYMBOL 'CIRCLE'<br>&gt;     &gt; SIZE 7<br>&gt;     &gt; OUTLINECOLOR 0 0 0<br>&gt;     &gt; COLOR 255 0 0<br>&gt;     &gt; END<br>&gt;     &gt; LABEL<br>&gt;     &gt; SIZE small<br>&gt;     &gt; COLOR 0 0 0<br>&gt;     &gt; ANGLE 0<br>&gt;    
 &gt; BUFFER 2<br>&gt;     &gt; END<br>&gt;     &gt; END<br>&gt;     &gt; PROCESSING "close_connection=DEFER"<br>&gt;     &gt; END<br>&gt;     &gt; #Circle symbol<br>&gt;     &gt; SYMBOL<br>&gt;     &gt; NAME 'CIRCLE'<br>&gt;     &gt; TYPE ellipse<br>&gt;     &gt; FILLED true<br>&gt;     &gt; POINTS<br>&gt;     &gt; 1 1<br>&gt;     &gt; END<br>&gt;     &gt; END<br>&gt;     &gt; ...........................<br>&gt;     &gt;<br>&gt;     &gt;<br>&gt;     &gt;<br>&gt;     &gt; But this is the problem i'm facing:<br>&gt;     &gt;<br>&gt;     &gt; In my ka-map system, the search results are able to be<br>&gt;     displayed. But<br>&gt;     &gt; the results are not distributed in the three appropriate layers<br>&gt;     (as i<br>&gt;     &gt; mentioned above, i have three layers: 2004, 2005, and 2006).<br>&gt;     &gt; For example, i search "Bus", and i get the results for buses<br>&gt;     accidents<br>&gt;     &gt; in 2004, 2005, and 2006 complete with accident type,<br>&gt;    
 description, date<br>&gt;     &gt; and time data. say i get 17 data.<br>&gt;     &gt; Then, the all 17 results are displayed three times as Results for<br>&gt;     &gt; Layer Year 2004, Results for Layer Year 2005, and Results for Layer<br>&gt;     &gt; Year 2006.<br>&gt;     &gt;<br>&gt;     &gt; I want to place the data result in their right place: the 2004 data<br>&gt;     &gt; result in Results for Layer Year 2004, the 2005 data result in<br>&gt;     &gt; Results for Layer Year 2005, and the 2006 data result in Results<br>&gt;     for<br>&gt;     &gt; Layer Year 2006.<br>&gt;     &gt;<br>&gt;     &gt; How should I configure my map file to do that? Or do I have to<br>&gt;     &gt; configure another files? If so, which files, and how should i<br>&gt;     &gt; configure them?<br>&gt;     &gt;<br>&gt;     &gt; I will appreciate any helps....<br>&gt;     &gt;<br>&gt;     &gt; Thank You<br>&gt;     &gt;<br>&gt;     &gt; -don-<br>&gt;     &gt;<br>&gt;     &gt;<br>&gt;    
 ------------------------------------------------------------------------<br>&gt;     &gt;<br>&gt;     &gt; _______________________________________________<br>&gt;     &gt; ka-Map-users mailing list<br>&gt;     &gt; ka-Map-users@lists.maptools.org<br>&gt;     &gt; http://lists.maptools.org/mailman/listinfo/ka-map-users<br>&gt;     &gt;<br>&gt;     _______________________________________________<br>&gt;     ka-Map-users mailing list<br>&gt;     ka-Map-users@lists.maptools.org<br>&gt;     http://lists.maptools.org/mailman/listinfo/ka-map-users<br>&gt;<br>&gt;<br>_______________________________________________<br>ka-Map-users mailing list<br>ka-Map-users@lists.maptools.org<br>http://lists.maptools.org/mailman/listinfo/ka-map-users<br></lorenzo@ominiverdi.com></blockquote><br><p>&#32;