Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "clayton";
- $password = "asdasdaE";
- $dbname = "xenforo";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $thread = "SELECT * FROM xf_thread WHERE `node_id` = '2' ORDER BY thread_id DESC LIMIT 4";
- $resultthreads = $conn->query($thread);
- echo "works";
- while ($row = $resultthreads->fetch_assoc()) {
- echo "
- <div class='notice'
- <div class='content'>
- <h3> ". $row['title']. "</h3>
- <span class='pull-left readmore'><a href='http://forums.minealot.com/index.php?threads/". $row['theard_id']."'>Read More</a></span><span class='pull-right author'>By ".$row['username']."</span>
- <div class='clearfix'></div>
- </div>
- </div>";
- }
- ?>
Add Comment
Please, Sign In to add comment