Some time you might get an error which looks like following :
mysql_pconnect() has been disabled
This is due to the security rules which have been currently on the server fro which mysql_pconnect has been disabled.
So in this case we just need to replace mysql_pconnect with mysql_connect and it will work like a dream.