Type: Posts; User: Mr.777
@JonLane: Kindly wrap your code in code tags.
Simply remove the condition -1 to terminate the loop.