Jump to content

How do you write to a db from a sub domain?


ballhogjoni

Recommended Posts

must be the host setting for user priveleges in mysql. if you have phpmyadmin.. click the home icon, click priveleges, click the edit box next to your user and see what the host is.. the host may be your domain as opposed to localhost or an ip. if so, change it to localhost

I checked that too, I have all privileges. Also it is set to localhost.

 

my connect code:

mysql_connect('localhost','xxxxxxxxx','xxxxxxxxxxxx') or die(mysql_error());
mysql_select_db('xxxxxxxxxx') or die(mysql_error());

 

I am trying to write to a wordpress database if that makes a difference.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.