Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host = "xxxxxxxxxxx"; //database location
- $user = "xxxxxxxxxxx"; //database username
- $pass = "xxxxxxxxxxx"; //database password
- $db_name = "xxxxxxxx"; //database name
- //Database Connection
- $link = mysql_connect($host, $user, $pass);
- mysql_select_db($db_name);
- mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
- require_once('./path/to/the/wp-config.php');
- mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
- $posts = $wpdb->get_results("SELECT ID, post_title FROM wp_posts WHERE post_status = 'future' AND post_type='post' ORDER BY post_date ASC LIMIT 0,4");
Add Comment
Please, Sign In to add comment