<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) I get the
following:</font>
<br>
<br><font size=3>array(7) { ["Id"]=> string(1) "0"
["Long_DD"]=> string(19) "-7.90000000000e+001" ["Lat_DD"]=>
string(18) "4.30000000000e+001" ["MS_PATH2"]=> string(40)
"http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } array(7) { ["Id"]=> string(1) "0" ["Long_DD"]=>
string(19) "-7.90000000000e+001" ["Lat_DD"]=> string(18)
"4.30000000000e+001" ["MS_PATH2"]=> string(40) "http://localhost/photoalbum/DSCN4329.JPG"
["SHAPE_INDEX"]=> int(0) ["TILE_INDEX"]=> int(-1)
["LAYER_INDEX"]=> int(5) } array(7) { ["Id"]=>
string(1) "0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } array(7) { ["Id"]=> string(1) "0" ["Long_DD"]=>
string(19) "-7.90000000000e+001" ["Lat_DD"]=> string(18)
"4.30000000000e+001" ["MS_PATH2"]=> string(40) "http://localhost/photoalbum/DSCN4329.JPG"
["SHAPE_INDEX"]=> int(0) ["TILE_INDEX"]=> int(-1)
["LAYER_INDEX"]=> int(5) } array(7) { ["Id"]=>
string(1) "0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } array(7) { ["Id"]=> string(1) "0" ["Long_DD"]=>
string(19) "-7.90000000000e+001" ["Lat_DD"]=> string(18)
"4.30000000000e+001" ["MS_PATH2"]=> string(40) "http://localhost/photoalbum/DSCN4329.JPG"
["SHAPE_INDEX"]=> int(0) ["TILE_INDEX"]=> int(-1)
["LAYER_INDEX"]=> int(5) } array(7) { ["Id"]=>
string(1) "0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
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]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } } array(1) { [0]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } } array(1) { [0]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } } array(1) { [0]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } } array(1) { [0]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } } array(1) { [0]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(5) } } array(1) { [0]=> array(7) { ["Id"]=> string(1)
"0" ["Long_DD"]=> string(19) "-7.90000000000e+001"
["Lat_DD"]=> string(18) "4.30000000000e+001" ["MS_PATH2"]=>
string(40) "http://localhost/photoalbum/DSCN4329.JPG" ["SHAPE_INDEX"]=>
int(0) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
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) { ["PROV"]=> string(2) "ON"
["NAME"]=> string(6) "Halton" ["POP1996"]=>
string(6) "339875" ["DWELL1996"]=> string(6) "118405"
["SHORE_AREA"]=> string(9) "970.10185" ["SHAPE_INDEX"]=>
int(40) ["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=>
int(0) } array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> int(0)
} array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> int(0)
} array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> int(0)
} array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> int(0)
} array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> int(0)
} array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> int(0)
} array(8) { ["PROV"]=> string(2) "ON" ["NAME"]=>
string(6) "Halton" ["POP1996"]=> string(6) "339875"
["DWELL1996"]=> string(6) "118405" ["SHORE_AREA"]=>
string(9) "970.10185" ["SHAPE_INDEX"]=> int(40)
["TILE_INDEX"]=> int(-1) ["LAYER_INDEX"]=> 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> </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steffen Macke <sdteffen@web.de></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 => $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>