<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Blammo a écrit :<br>
<br>
<blockquote cite="mid413F1D4B.5040407@ci.stpaul.mn.us" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
  <blockquote><span class="moz-txt-link-freetext">map=global/view.map&layers=usstates_poly_utm+mncounty_poly_utm&qlayer=usstates_poly_utm&qitem=FIRST_NAME&qstring=Minnesota&mode=itemquery&mapext=shapes</span>
    <br>
  </blockquote>
The error:<br>
  <blockquote><b>msQueryByAttributes(): Query error. Requested layer
has
no templates defined. </b><br>
  </blockquote>
  <br>
The MapFile (partial):
  <br>
  <br>
 QUERYMAP
  <br>
   STATUS ON
  <br>
   STYLE SELECTED
  <br>
 END
  <br>
  <br>
 LAYER
  <br>
   NAME 'usstates_poly_utm'
  <br>
</blockquote>
           #add this line :<br>
         TEMPLATE  "path/to/the_template_file.html"<br>
<blockquote cite="mid413F1D4B.5040407@ci.stpaul.mn.us" type="cite">  
DATA '/var/www/map_data/usstates_poly_utm'
  <br>
   TYPE POLYGON
  <br>
   STATUS OFF # must explicitly turn this layer on
  <br>
   CLASS
  <br>
     COLOR 255 255 200
  <br>
     OUTLINECOLOR 50 50 50
  <br>
   END
  <br>
 END
  <br>
  <br>
Partial data dump from dbfdump:
  <br>
What am I doing wrong please?
  <br>
  <br>
bobb<br>
</blockquote>
<br>
and look <a
 href="http://mapserver.gis.umn.edu/doc42/template-reference.html">http://mapserver.gis.umn.edu/doc42/template-reference.html</a>
to create the template file. <br>
Templates  define the presentation of  the results of a query<br>
<br>
<br>
</body>
</html>