我有一个多标记谷歌地图,它工作正常,但我想设置infowindow圆角
和我的代码是:
<script type="text/javascript">
var locationList = new Array( '23.2531803, 72.4774396', '22.808782, 70.823863' );
var message = new Array('Kalol , Gujarat , India , 382721<br /><br /> Go to <a href="/joomla_1.5/index.php?option=com_content&view=article&id=9:chinta-ta-ta-chita-chita-wwwsongspk&catid=1:cat1&Itemid=7">Kalol</a>', 'Morbi , Gujarat , India , 363641<br /><br /> Go to <a href="/joomla_1.5/index.php?option=com_content&view=article&id=9:chinta-ta-ta-chita-chita-wwwsongspk&catid=1:cat1&Itemid=7">Morbi</a>');
var map;
var lat_min = 22.808782;
var lat_max = 23.2531803;
var lng_min = 70.823863;
var lng_max = 72.4774396;
window.onload = function() {
var myOptions = {
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
map.setCenter(new …Run Code Online (Sandbox Code Playgroud) 我想计算count和group by table结果的结果
就像我有一张桌子一样a:
id |name
1 |abc
2 |abc
3 |abc
4 |xyz
5 |xyz
Run Code Online (Sandbox Code Playgroud)
我的疑问是 SELECT COUNT(id) as count_id from a GROUP BY name
...给出结果:
count_id
3
2
Run Code Online (Sandbox Code Playgroud)
我想要计算这个结果的总行数是2
所以我的查询是 SELECT COUNT(SELECT COUNT(id) as count_id from a GROUP BY name) as maincount from a
...但它给了我这个错误 phpmyadmin
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT count.....
我有两个数组:
$a = array([0]=>1 [1]=>2 [2]=>3);
$b = array([0]=>a [1]=>b [2]=>c);
Run Code Online (Sandbox Code Playgroud)
我想合并它们就像
$ab=array( [a]=>array([0]=>1 [1]=>2 [2]=>3)
[b]=>array([0]=>a [1]=>b [2]=>c) );
Run Code Online (Sandbox Code Playgroud)
这该怎么做 ?
我试过array_merge()但它不能按我的意愿工作.