Connecting to external database
-
How do I connect to an external database from WordPress? Where do I add an additional connection string (in a specific wp-config type file or right in the HTML area of a wordpress page)? Where do I add the php code that creates the query and pulls in the data (on a general wordpress page in the HTML area)?
I have created the same connections on a general GoDaddy hosted site but cannot replicate the connections and display on a WordPress page….
I just need a step by step of: a) add connection string here, b) add php code here, etc.
Oh. And it seems as if any php code in between the usual <?php ?> tags doesn’t always work….
The blog I need help with is: (visible only to logged in users)
-
We have code restrictions and what you want to fo cannot be done on a wordpress.COM hosted where we bloggers have no database access. Please read:
https://en.support.wordpress.com/code/ -
Thanks. I appreciate the quick response.
Although I posted this inquiry using my general wordpress.com account (which, admittedly, I can’t do much with because of the free template being used on my site) – however, I believe with the template purchased and the hosting we’re using (also GoDaddy) – these options should be available.
(Of course, I could be wrong… I know I’ve been customizing the template with the various php – header, wp-config, style.css, etc. files for awhile now so I’m assuming I can/should be able to add custom code for database access.)
-
– however, I believe with the template purchased and the hosting we’re using (also GoDaddy)
My response above applied to http://mrmiller23.wordpress.com/ and it is a wordpress.COM hosted site.
We provide support only for wordpress.COM hosted sites and that site you decribe is not among them. Our support docs do not apply to
(1) local installs of wordpress.ORG software on your own server or
(2) wordpress.ORG software installs on paid hosting, and we do not provide support for them at wordpress.COM.Also, note that we do not provide Jetpack support https://jetpack.me/support/ for sites linked to wordpress.COM accounts with the Jetpack plugin.
You are posting to the wrong support forum.
WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
As you are referring to a site that is not hosted here, if you don’t have a username account at WordPress.ORG account, then click http://wordpress.org/support/ and register one on the top right-hand corner of the page that opens, https://wordpress.org/support/register.php so you can post to the support forums there.
Resetting your WordPress.ORG password http://codex.wordpress.org/Resetting_Your_Password
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
See also https://apps.wordpress.org/support/ -
Then I aplologize. While I understand the differences between wordpress.com vs. wordpress.org sites – I guess I assumed this was more of an all-encompassing place for support for anything wordpress related.
- The topic ‘Connecting to external database’ is closed to new replies.