0

My problem is that i have array of String values and I want to iterate over the array and with each value I want to get the id of the value form database. usernames array has String values in it.

EDIT: After watching topic my post was refered to, i got this code and it still doesnt work, but why??

 for(i=0;i<usernames.length;i++){
             $.get("getIdByName.php",
              {name : usernames[i]}).done(function(data){
            ids.push(data);
         });

           }
Ollikas
  • 199
  • 1
  • 3
  • 14

0 Answers0