I want to get the total number of posts from wordpress to my php website.
So i use line require_once('c:/xampp/htdocs/wordpress/wp-blog-header.php');
There was no problem when I connected my database using "mysql_"
But the problem arrives when I change the database connection string from "mysql_" to "PDO".
I get Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'WORDPRESS_DB.MY_TABLE' doesn't exist
So In my website, instead of my connection string, it uses the wordpress databse connection string.
Please reply. How to solve this problem?