’98 Rover 400 electrical problem

Hi all,as i was driving my rover 400 tonight,it suddenly died on me..no warning,nothing.the only thing that was on,were the ignition lights,but they were very dim.Even when i took the keys out of the ignition,they stayed on.I looked under the bonnet and found the positive battery cable was loose.When i touched the cable to the battery,there was a clicking noise from the other side of the engine.I couldn’t work on it ‘cos of the dark and i had no tools.The car is still at the side of the road,miles from where i live.Any ideas anyone please….