i have a report that i have addresses and in the report i print to screen the words "Map It" instead of the address thats a link to google maps so the user can get a map. below is what i use
it works great but it does it even when there is no address in a record.Code:<td><font size="1" face="Arial, Helvetica, sans-serif"><a href="http://maps.google.com/maps?f=q&hl=en&q=<?php echo urlencode($address); ?>" target="_blank">map it</a></font></td>
i have tried a few different if statements with no luck. any help. also would like to know if i could highlight the cell in yellow if blank.




Reply With Quote