External DB Connection [closed]

Sorry fellows, it was a mysql issue. Nothing wrong with the code.