<br><font size=2 face="sans-serif">Steffan,</font>
<br><font size=2 face="sans-serif">Thanks for your help. Now my code
displays the query window, and lists the column headings (Long DD, Lat
DD, MS PATH2), but does not populate these fields with any attributes.</font>
<br><font size=2 face="sans-serif">When I echo($key), the value is 'LAYER_INDEX',
and when I echo($xCell), the value is '5'</font>
<br>
<br><font size=2 face="sans-serif">The fields Long_DD, Lat_DD, and MS_PATH2
are the only columns in my shapefile, if you don't count the default ESRI
columns of FID and shape.</font>
<br>
<br><font size=2 face="sans-serif">Below is the 2 snippets of code I have
added to query.phtml to get this far:</font>
<br>
<br><font size=2 face="sans-serif">Snippet 1:</font>
<br><font size=2 face="sans-serif">//***********ADDED FOR HYPERLINK***************************************************************</font>
<br>
<br><font size=2 face="sans-serif">
// loop and use key for titles</font>
<br><font size=2 face="sans-serif">
// $Key is equal to the attribute name, which is also the header
of column</font>
<br>
<br><font size=2 face="sans-serif">
foreach ($aRows[0] as $key => $value)</font>
<br><font size=2 face="sans-serif">
{</font>
<br><font size=2 face="sans-serif">
// The
purpose of this if loop is to find the only attribute name we want to display</font>
<br>
<br><font size=2 face="sans-serif">
if (strcasecmp($key,
"Long_DD") == "Long_DD" ||</font>
<br><font size=2 face="sans-serif">
strcasecmp($key, "Lat_DD")
== "Lat_DD" ||</font>
<br><font size=2 face="sans-serif">
strcasecmp($key, "MS_PATH2")
== "MS_PATH2")</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
//$szReturnValue .= "<td bgcolor=\"E2EFF5\"><font
face=\"Arial, Helvetica, sans-serif\" size=\"2\">".$key."</font></td>\n";</font>
<br><font size=2 face="sans-serif">
$szReturnValue = $szReturnValue."<td bgcolor=\"E2EFF5\">"."<font
face=\"Arial, Helvetica, sans-serif\" size=\"2\">".$key."</font></td>\n";</font>
<br><font size=2 face="sans-serif">
}</font>
<br>
<br><font size=2 face="sans-serif">//*********************************************************************************************</font>
<br>
<br><font size=2 face="sans-serif">Snippet 2:</font>
<br><font size=2 face="sans-serif">//***********ADDED FOR HYPERLINK***************************************************************</font>
<br>
<br><font size=2 face="sans-serif">
// loop and add a cell for each result</font>
<br><font size=2 face="sans-serif">
foreach ( $aRow as $xCell )</font>
<br><font size=2 face="sans-serif">
{</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
// $xCell is the attribute value, in this
case,when the $key attribute name is equal to "Long_DD" and "Lat_DD"
only display the value of attribute.</font>
<br>
<br><font size=2 face="sans-serif">
if ((strcasecmp($key, "Long_DD")
== 0) ||</font>
<br><font size=2 face="sans-serif">
(strcasecmp($key, "Lat_DD")
== 0))</font>
<br><font size=2 face="sans-serif">
{$szReturnValue .= "<td bgcolor=\"#ffffff\"><font
face=\"Arial, Helvetica, sans-serif\" size=\"2\">".
$xCell."</font></td>\n";}</font>
<br>
<br><font size=2 face="sans-serif">
//when the attribute name is equal to MS_PATH2,
hyperlink according to the value of attribute, the attribute value of MS_PATH2
should be simliar as http://localhost/photoalbum/image.jpg </font>
<br><font size=2 face="sans-serif">
//photoalbum folder with images is put at
your web server.</font>
<br>
<br><font size=2 face="sans-serif">
else if (strcasecmp($key, "MS_PATH2")
== 0)</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
{$szReturnValue
.= "<td bgcolor=\"#ffffff\"> <a href=\"".$xCell."\">
Click here to document</a></td>\n";}
</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif">
// $szReturnValue .= "</tr>\n";</font>
<br><font size=2 face="sans-serif">
}</font>
<br>
<br><font size=2 face="sans-serif">//*********************************************************************************************</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Kevin<br>
</font>