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 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.