Please post your code (between code tags). At this stage I think that you have not added the correct socket descriptor or that you have made a mistake in the highest number. The correct socket descriptor for the select is the one that is returned by accept (if I recall correctly).
There is a dedicated
programming section here at LQ. You can use the 'report' button at the bottom of your post and ask a moderator to move this thread.