Welcome to WebmasterWorld Guest from

Forum Moderators: mack

Message Too Old, No Replies

Connect to a remote database using php?

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

Junior Member

10+ Year Member

joined:July 15, 2003
votes: 0

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)

Senior Member from CA 

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 25, 2003
votes: 100

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!