<br><font size=2 face="sans-serif">Steffan,</font>
<br><font size=2 face="sans-serif">Changing the 'for each' statement worked!!!
The attributes were displayed and I was able to click on the link and see
the right photo.</font>
<br><font size=2 face="sans-serif">However, when I query other layers,
I do not receive any attributes for them.</font>
<br>
<br><font size=2 face="sans-serif">As I side note, how can you modify it
so that the picture automatically appears in the query window by itself
when the feature is clicked (eg. the user does not have to click on a link
in the query results window to see the photo)?</font>
<br>
<br><font size=2 face="sans-serif">Using var_dump($aRow) &nbsp;I get the
following:</font>
<br>
<br><font size=3>array(7) { [&quot;Id&quot;]=&gt; string(1) &quot;0&quot;
[&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot; [&quot;Lat_DD&quot;]=&gt;
string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt; string(40)
&quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } array(7) { [&quot;Id&quot;]=&gt; string(1) &quot;0&quot; [&quot;Long_DD&quot;]=&gt;
string(19) &quot;-7.90000000000e+001&quot; [&quot;Lat_DD&quot;]=&gt; string(18)
&quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt; string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot;
[&quot;SHAPE_INDEX&quot;]=&gt; int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1)
[&quot;LAYER_INDEX&quot;]=&gt; int(5) } array(7) { [&quot;Id&quot;]=&gt;
string(1) &quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } array(7) { [&quot;Id&quot;]=&gt; string(1) &quot;0&quot; [&quot;Long_DD&quot;]=&gt;
string(19) &quot;-7.90000000000e+001&quot; [&quot;Lat_DD&quot;]=&gt; string(18)
&quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt; string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot;
[&quot;SHAPE_INDEX&quot;]=&gt; int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1)
[&quot;LAYER_INDEX&quot;]=&gt; int(5) } array(7) { [&quot;Id&quot;]=&gt;
string(1) &quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } array(7) { [&quot;Id&quot;]=&gt; string(1) &quot;0&quot; [&quot;Long_DD&quot;]=&gt;
string(19) &quot;-7.90000000000e+001&quot; [&quot;Lat_DD&quot;]=&gt; string(18)
&quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt; string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot;
[&quot;SHAPE_INDEX&quot;]=&gt; int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1)
[&quot;LAYER_INDEX&quot;]=&gt; int(5) } array(7) { [&quot;Id&quot;]=&gt;
string(1) &quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } </font>
<br>
<br>
<br><font size=2 face="sans-serif">Using var_dump($aRows) I get this:</font>
<br>
<br><font size=3>array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } } array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } } array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } } array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } } array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } } array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } } array(1) { [0]=&gt; array(7) { [&quot;Id&quot;]=&gt; string(1)
&quot;0&quot; [&quot;Long_DD&quot;]=&gt; string(19) &quot;-7.90000000000e+001&quot;
[&quot;Lat_DD&quot;]=&gt; string(18) &quot;4.30000000000e+001&quot; [&quot;MS_PATH2&quot;]=&gt;
string(40) &quot;http://localhost/photoalbum/DSCN4329.JPG&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(0) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(5) } }</font>
<br>
<br>
<br><font size=3>When I select another a non-hyperlinking feature (such
as a county) and use var_dum($aRow) I get this:</font>
<br>
<br><font size=3>array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot;
[&quot;NAME&quot;]=&gt; string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt;
string(6) &quot;339875&quot; [&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot;
[&quot;SHORE_AREA&quot;]=&gt; string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt;
int(40) [&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt;
int(0) } array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} array(8) { [&quot;PROV&quot;]=&gt; string(2) &quot;ON&quot; [&quot;NAME&quot;]=&gt;
string(6) &quot;Halton&quot; [&quot;POP1996&quot;]=&gt; string(6) &quot;339875&quot;
[&quot;DWELL1996&quot;]=&gt; string(6) &quot;118405&quot; [&quot;SHORE_AREA&quot;]=&gt;
string(9) &quot;970.10185&quot; [&quot;SHAPE_INDEX&quot;]=&gt; int(40)
[&quot;TILE_INDEX&quot;]=&gt; int(-1) [&quot;LAYER_INDEX&quot;]=&gt; int(0)
} </font>
<br>
<br><font size=3>As I mentioned before, attributes for this layer are not
displayed in the query window.</font>
<br>
<br><font size=3>Thanks for your help!</font>
<br>
<br><font size=3>Kevin</font>
<br>
<br><font size=3>&nbsp;</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steffen Macke &lt;sdteffen@web.de&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: sdteffen@web.de</font>
<p><font size=1 face="sans-serif">09/02/2004 11:18 AM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">kgrootendorst@baird.com</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [Fwd: Re: [maplab-users]
links from map to jpg]</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Kevin,<br>
<br>
the first snippet is using strcasecmp() in the wrong way.<br>
In the second one, $key is not initialized. Change<br>
<br>
 foreach ( $aRow as $xCell )<br>
<br>
to <br>
<br>
 foreach ( $aRow as $key =&gt; $xCell )<br>
<br>
I would also like to draw your attention that there's a difference<br>
between $aRow and $aRows[0]<br>
<br>
Could you tell us what<br>
<br>
var_dump($aRow); <br>
<br>
and<br>
<br>
var_dump($aRow);<br>
<br>
give as output? - you should add this inside the loop<br>
over all rows.<br>
You should also check whether there are any rows retrieved at all.<br>
<br>
Steffen<br>
</tt></font>
<br>