You can normally tell by looking at the sockets, the computers comm port has a male socket.
If the programmer has the exact same plug then it is likely that you need a null modem cable.
If the programmer has a female socket(opposite of the computer comm port) then it is likely you need a straight through serial cable.