Problems implenting code on 20x4 LCD but code works on 16x2

Are you using the Arduino Ethernet shield? I think that uses pins 11 and 12.