Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Connect to a remote database using php?



10:46 am on Jan 23, 2004 (gmt 0)

10+ Year Member

Iam using a basic php contact page.

The database is on my home server and when i post on the contact us form is works correctly.

When i upload the page to a php host, setup the database host details i get an error like:

Error accepting Query : insert command denied to user: '@localhost' for table 'contact'

Ive given all the priviledges needed to get it to work, but it wont shift!

In my php ive used <?=$_SERVER['PHP_SELF']?>

Could this have anything to do with it?


9:54 pm on Jan 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Try posting your question in the PHP Server Side Scripting forum: the php experts may not browse this forum too often.

Or sticky a mod or admin type to move your post.

There are so many forums here!


Featured Threads

Hot Threads This Week

Hot Threads This Month