Try a tooth pick or rubber band to hold it to the rock.

Just run the pick through the bottom part of the coral and into a hole in the rock

You can use the rubber band to hold it in place.

Ether takes a week to 10 days to work