do{}while error or bug?

do{}while error or bug?

maybe anyone can tell is this an error or i'm doing something wrong.
as i understand there must value 123 in the #footer div, but i get 444
(this div is made just to see the values of var "w" at all stages, all i need is string 6 in my code)
  1. ct_all=3
  2. w=1
  3. do{
  4. toto='#center_' + w
  5. $.get("include/view_function.php", { hot: w},function(data){$(toto).load(data + " .tp_offers_tbl");
  6. $('#footer').append(w)
  7. });
  8. w++
  9. }while(w<=ct_all)
Thanks anyblody for anyhelp!)