Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "178.33.82.55";
- $user = "sito";
- $pass = "sitopass";
- $db = "blog";
- $conn = mysql_connect($host,$user,$pass);
- mysql_select_db($db, $conn);
- $result = mysql_query("SELECT * FROM wp_posts WHERE post_type = 'post' ORDER BY id DESC LIMIT 10", $db);
- while ($records = mysql_fetch_assoc($result)) {
- echo $records['post_title'];
- }
- ?>
Add Comment
Please, Sign In to add comment