I am getting the longitude and latitude from AJAX and giving me more 120 on every page load. Marking the result locations into google map and using browser key. It was working fine, but suddenly it stopped working and getting 'This site has exceeded its daily quota for maps. If you are the creator of this site, please visit the documentation to learn more' error plus page hangs. It has been more than 24 hours, but the problem remains same. I tried to found out the solution but no luck and I changed new API key.

JS files:

<script src="http://open.mapquestapi.com/sdk/js/v7.2.s/mqa.toolkit.js?key=my-browser-key"></script> 
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=geometry"></script>

JS code:

var map;
var infowindow;
var service;
var address     = "United Kingdom";
var latitude    = '51.497801';
var longitude   = '-0.065918';
var myLatlng    = new google.maps.LatLng(latitude,longitude); 
var geocoder    = new google.maps.Geocoder();
var markers     = '';
function initialize() {
    var bounds = new google.maps.LatLngBounds();
    var getTeamsUrl = Routing.generate('getAllUsers',{});
    $.ajax({
        url      : getTeamsUrl,
        type     : 'POST', 
        data     : 'type=getAllUsers',
        datatype : 'json',
        async    : false,
        success : function(data){
            markers = JSON.parse(data);
        }
    });
    console.log(markers.length);
    myLatlng = new google.maps.LatLng(latitude,longitude);  /* latitude and longitude*/
    var mapOptions = {
        zoom: 7,
        center: myLatlng,
        panControl:true,    
        draggable: true,
        zoomControl:true,
        scrollwheel: false,
        scaleControl:false,
        rotateControl:true,
        mapTypeControl:true,    
        streetViewControl:true,
        overviewMapControl:true,
        navigationControl: true,
        mapTypeId:google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
    // Display multiple markers on a map
    var infoWindow = new google.maps.InfoWindow(), marker, i;

    for( i = 0; i < markers.length; i++ ){
        name      = markers[i]['title']+' '+ markers[i]['first_name']+' '+ markers[i]['surname'];
        address   = markers[i]['address_1']+' '+ markers[i]['address_2']+', '+ markers[i]['city']+', '+ markers[i]['postcode'];
        longitude ...

I have an Array containing arrays with 8 values, I want to group date element having same teacher_name, school_name and month_year.

Below is my array:

Array
(
    [0] => Array
        (
            [teacher_name] => CF
            [school_name] => School 1
            [month_year] => Jun 16
            [starttime] => 04:04 PM
            [endtime] => 05:04 PM
            [total_minutes] => 60
            [teacher_rate] => 20
            [date] => 09
        )
    [1] => Array
        (
            [teacher_name] => CF
            [school_name] => School 1
            [month_year] => Jun 16
            [starttime] => 04:04 PM
            [endtime] => 05:04 PM
            [total_minutes] => 60
            [teacher_rate] => 20
            [date] => 12
        )
    [2] => Array
        (
            [teacher_name] => CF
            [school_name] => School 1
            [month_year] => Oct 16
            [starttime] => 04:08 PM
            [endtime] => 05:08 PM
            [total_minutes] => 60
            [teacher_rate] => 20
            [date] => 01
        )
    [3] => Array
        (
            [teacher_name] => CF
            [school_name] => School 1
            [month_year] => Oct 16
            [starttime] => 04:08 PM
            [endtime] => 05:08 PM
            [total_minutes] => 60
            [teacher_rate] => 20
            [date] => 02
        )    
    [4] => Array
        (
            [teacher_name] => CF
            [school_name] => School 2
            [month_year] => Oct 16
            [starttime] => 04:08 PM
            [endtime] => 05:08 PM
            [total_minutes] => 60
            [teacher_rate] => 20
            [date] => 11
        )
    [5] => Array
        (
            [teacher_name] => CF
            [school_name] => School 2
            [month_year] => Oct 16
            [starttime] => 04:08 PM
            [endtime] => 05:08 PM
            [total_minutes] => 60
            [teacher_rate] => 20
            [date] => 22
        )
)           

I want like below:

Array
(
    [0] => Array
        (
            [teacher_name] => CF
            [school_name] => School 1
            [month_year] => Jun 16
            [starttime] => 04:04 ...

I am inserting dates like 2016-03-01T00:00:00, which is in the varchar format. I want to convert into as mysql date and add between condition to get records. I am using STR_TO_DATE function, but I am getting as NULL value.

It is showing 128M

I am getting:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 79 bytes) in /path/dbclass.php on line 225

line 225  :  $row   =   mysql_fetch_assoc($res);  
  1. It was 64M; increased to 128M but no luck.
  2. I added ini_set('memory_limit', '-1'); at top of the page but no luck.
  3. I added the php_value memory_limit 512M in the htaccess but no luck. Site went down; got fatal error.

    Options +FollowSymlinks
    RewriteEngine on

    RewriteBase /prolinc/

    RewriteBase /

    RewriteCond %{HTTP_HOST} ^domainname.com$ [NC]
    RewriteRule ^(.*)$ http://www.domainname.com/$1 [L,R=301]

    php_value memory_limit 512M