The cable will not just fall out. On my clean iphone I can hang the phone from the cable and lightly swing it around without it disconnecting. If it's just falling out it's because something is mechanically wrong or it's full of gunk.