<br><font size=2 face="sans-serif">Steffen, </font>
<br><font size=2 face="sans-serif">I've switched on some error messages,
and I'm getting the following:</font>
<br>
<br><font size=3><b>Parse error</b>: parse error, unexpected T_VARIABLE
in <b>C:\Program Files\Apache Group\Apache2\htdocs\maplab-2.2\projects\gmf_apps\IJC_LCC\query.phtml</b>
on line <b>189</b></font>
<br>
<br>
<br><font size=2 face="sans-serif">Line 189 is the one that begins "$szReturnValue.="
below:</font>
<br>
<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">
$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><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif">I'm by no means a PHP programmer, so
any tips/tricks would be greatly appreciated.</font>
<br><font size=2 face="sans-serif">Thanks.</font>
<br>
<br><font size=2 face="sans-serif">Kevin</font>
<p>
<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: maplab-users-bounces@lists.maptools.org</font>
<p><font size=1 face="sans-serif">09/01/2004 03:42 PM</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">maplab-users@lists.maptools.org</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: [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>
> I changed the code, but the link still does not work.<br>
<br>
Are you getting any error messages? Please check that you've switched<br>
on as many error and warning messages in php.ini as possible.<br>
<br>
My code snippet had a small problem (I used or instead of ||)<br>
Could you check the snippet below.<br>
<br>
If it's not working and you don't get any error messages, please add some
<br>
debug code E.g. <br>
echo($key);<br>
echo($xCell);<br>
<br>
and post the results to the list.<br>
<br>
Steffen<br>
<br>
// loop and add a cell for each result<br>
foreach ( $aRow as $key => $xCell ) {<br>
// $xCell is the attribute value, in this case,when the $key attribute
name <br>
// is equal to "Long_DD" and "Lat_DD" only display
the value of attribute.<br>
if((strcasecmp($key, "Long_DD") == 0) ||<br>
(strcasecmp($key, "Lat_DD") == 0 )) {<br>
$szReturnValue .= "<td bgcolor=\"#ffffff\">".<br>
"<font face=\"Arial, Helvetica,
sans-serif\" size=\"2\">". <br>
$xCell."</font></td>\n";<br>
}<br>
<br>
// when the attribute name is equal to MS_PATH2, hyperlink according
to the <br>
// value of attribute, the attribute value of MS_PATH2 should be
simliar as <br>
// http://localhost/photoalbum/image.jpg <br>
//photoalbum folder with images is put at your web server.<br>
<br>
else if(strcasecmp($key, "MS_PATH2") == 0) {<br>
$szReturnValue .= "<td bgcolor=\"#ffffff\">
<a href=\"".$xCell.<br>
"\"> Click here to document</a></td>\n";<br>
} <br>
}<br>
<br>
_______________________________________________<br>
Maplab-users mailing list<br>
Maplab-users@lists.maptools.org<br>
http://lists.maptools.org/mailman/listinfo/maplab-users<br>
</tt></font>
<br>