要求:从mysql数据库中读取行,其中一列包含地址和城市,通过传递地址的地址将结果地址转换为谷歌 Map 的链接,如下所示:is there a way to pass arguments to google map's get directions functionality? php code shippet $ result = mysql_query($ sql)或die(mysql_error());虽然($ row = mysql_fetch_array($ result)){echo''.$row[' DAYTIME '].' '.$row[' MEETINGNAME '].' '.' '.$row['ADDRESSCITY'].' '.' '.$row[' BLDGNAME '].' '; } ?> The above block of code sucefully creates a link to maps.google.com BUT I want to put $row[' ADDRESSCITY']在“http://maps.google.com/?q=和收盘”之间我试过这个:
'<a href="http://maps.google.com/?q='.$row['ADDRESSCITY'].'/a'">'
并且不显示任何结果,也没有错误消息 . 谢谢
3 回答
将网址更改为此 .
试试这个 :
你可以尝试删除“只是在
<a href="http://maps.google.com/?q=
之后的报价