Update tmp_index_ajax.php

Fixed and tested... now works as a charm