Sometimes web hosts have a different server than "localhost". Have you tried adjusting that? There really shouldn't be a difference between xampp and a web host except the server, database name, username and password and possibly the port but that would be unusual.
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
|