Ethernet Module having problem with Ethernet Library

Hello there, I have a problem connecting my Arduino to internet by using ethernet module and Ethernet library came IDE, but when I try to use other custom libraries like EtherCard library it works fine, what do you think could be a problem?

Or if someone knows how I can write and read data to the database using arduino please help me.

The EtherCard library is written for use with the ENC28J60 Ethernet controller. The Ethernet library is written for use with the W5100 Ethernet controller and can not be used with the ENC28J60. If you want a library written for ENC28J60 with the same API as the Ethernet library I recommend:

There is also a fork of it that has more recent development but I haven't used that one: