0

wpdb class in wordpress is used for making connection to database.

is there any substitute to this class in PHP repository?

So i can access different database then the original database that have been initiate in wp-config ?

2
  • Why do you ask twice? stackoverflow.com/questions/2542877/… Commented Mar 30, 2010 at 5:57
  • i believe i'm not asking twice. it's different question for the same purpose Commented Mar 30, 2010 at 6:14

1 Answer 1

1

As Wordpress is developped using PHP, I suppose you could use any PHP functions/classes, as long as the corresponding extension is installed on your server.

See the Database Extensions section of the manual for a list of extensions that can be used to connect to different kinds of database systems.


If you are using MySQL, I would suggest the **[mysqli][2]** extension -- at least if installed on your server ; it's more recent, and support more features, than the old [mysql][3] one.

PDO can be a good choice too -- and works with both MySQL and other database systems.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.