Upon arriving in Manila you can buy ticket there and just wait few hours to take your flight, im not sure if you can get a ticket from international to connect it to local flight, but the best thing you can do is buy a ticket from the manila airport upon arriving. good luck to you,