<DIV>
<DIV>Hi! Kevin,</DIV>
<DIV>== is comparsion operator , || is logical operator Or</DIV>
<DIV>I modified a little bit of your code and put few explaination. Hope it will work. If not, please let me know.</DIV>
<DIV>Have a nice day!</DIV>
<DIV> </DIV>
<DIV>Charlie</DIV>
<DIV> </DIV>
<DIV><BR><BR><B><I>kgrootendorst@baird.com</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P><BR><FONT face=sans-serif size=2>Hi Charley,</FONT> <BR><FONT face=sans-serif size=2>(I had to send this twice, because the maplab list bounced the first message back to me)</FONT> <BR><BR><FONT face=sans-serif size=2>Thanks for your help. Unfortunately, I do not have the function working yet, but I feel I am close. </FONT><BR><FONT face=sans-serif size=2>In your posting, are the characters "==" and "||" valid php syntax?</FONT> <BR><FONT face=sans-serif size=2>Also, your posting is just a portion of your query.phtml file right? Or is that your entire query.phtml file?</FONT> <BR><BR><FONT face=sans-serif size=2>Below is my code, for the areas where I describe my columns of the attribute table. Do you see any thing that appears incorrect?</FONT> <BR><FONT face=sans-serif size=2>The URL (with photo name) to my jpegs is contained in the column "MS_PATH", the column "photo" contains only the photo name.</FONT> <BR><BR><FONT face="Courier New" size=2>// loop and use
key for titles</FONT> </P>
<P>// $Key is equal to the attribute name, which is also the header of column<BR><FONT face="Courier New" size=2> foreach ($aRows[0] as $key => $value)</FONT> <BR><FONT face="Courier New" size=2> {</FONT> <BR><FONT face="Courier New" size=2> // The purpose of this if loop is to find the only attribute name we want to dispaly</FONT></P>
<P><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" size=2> if (strcasecmp($key, "Long_DD") == "Long_DD";</FONT> <BR><FONT face="Courier New" size=2> strcasecmp($key, "Lat_DD") == "Lat_DD";</FONT> <BR><FONT face="Courier New" size=2> strcasecmp($key, "photo") == "photo";</FONT> <BR><FONT face="Courier New" size=2> </FONT><FONT face="Courier New"
size=2> </FONT> <BR><FONT face="Courier New" size=2> //********************************</FONT> <BR><FONT face="Courier New" size=2> $szReturnValue .= "<td bgcolor=\"E2EFF5\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">".$key."</font></td>\n";</FONT> <BR><FONT face="Courier New" size=2> }</FONT> <BR><BR><FONT face=sans-serif size=2>*************************</FONT> <BR>// $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.</P>
<P><BR> </P><FONT face="Courier New" size=2></FONT>
<P><FONT face="Courier New" size=2> if (strcasecmp($key, "Long_DD") == "Long_DD";</FONT> <BR><FONT face="Courier New" size=2> strcasecmp($key, "Lat_DD") == "Lat_DD" )</FONT> <BR><FONT face="Courier New" size=2> {$szReturnValue .= "<td bgcolor=\"#ffffff\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">". $xCell."</font></td>\n";}</FONT> <BR></P>
<P>//when the attribute name is equal to photo, hyber link the according to the value of attribute, the attribute value of photo should be simliar as <A href="http://localhost/photoalbum/image.jpg">http://localhost/photoalbum/image.jpg</A> </P>
<P>//photoalbum folder with images is put at your web server.</P>
<P><FONT face="Courier New" size=2> else if (strcasecmp($key, "photo") == "photo";</FONT> <BR><FONT face="Courier New" size=2> </FONT> <BR><FONT face="Courier New" size=2> </FONT><BR><FONT face="Courier New" size=2> </FONT><BR><FONT face="Courier New" size=2> {$szReturnValue .= "<td bgcolor=\"#ffffff\"> <a href=\"".$xCell."\"> Click here to document</a></td>\n";}
</FONT> <BR><FONT face="Courier New" size=2> }</FONT> <BR><FONT face="Courier New" size=2> $szReturnValue .= "</tr>\n";</FONT> <BR><FONT face="Courier New" size=2> }</FONT> <BR><BR><FONT face=sans-serif size=2>********************</FONT> <BR><BR><FONT face=sans-serif size=2>Thanks!</FONT> <BR><BR><FONT face=sans-serif size=2>Kevin<BR></P></FONT>
<P><FONT face="Times New Roman" color=blue size=2>______________________________</FONT><FONT face="Times New Roman" color=blue size=5><BR>Baird </FONT><FONT face="Times New Roman" color=blue size=2><I><BR>Innovation, Excellence, & Service</I></FONT><FONT size=3> </FONT><FONT face="Times New Roman" color=blue size=2><I><BR>Oceans, Lakes & Rivers</I></FONT><FONT face="Times New Roman" size=2><B><BR>Kevin Grootendorst </B><BR>905-845-5385 phone 905-845-0698 fax<BR>627 Lyons Lane, Suite 200<BR>Oakville, Ontario, Canada L6J 5Z7 </FONT><FONT face="Times New Roman" color=blue size=2><U><BR></U></FONT><A href="mailto:kgrootendorst@baird.com"><FONT face="Times New Roman" color=blue size=2><U>mailto:kgrootendorst@baird.com</U></FONT></A><FONT size=3> </FONT><A href="http://www.baird.com/" target=_blank><FONT face="Times New Roman" color=blue size=2><U>http://www.baird.com/</U></FONT></A><FONT size=3> </FONT><FONT face="Times New Roman" color=blue
size=5><BR>______________________________</FONT></P></BLOCKQUOTE></DIV><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>