MacBook Pro not detecting external monitor

Turns out there seems to be something wrong with the cable.

I tried using the cable that I use to the monitor that was being detected and it works now... Is this a faulty cable or is the cable simply just not compatible or something?