Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter ruaduck

    (@ruaduck)

    I have also tried:

    <?php
    $servername = "localhost";
    $username = "*****";
    $password = "*****";
    $dbname = "******"
    $db = new wpdb($username, $password, $dbname, $servername); 
    
    $row = $db->get_results("SELECT * FROM Event_Feeder ORDER BY id DESC LIMIT 25");
    $db->show_errors();
    echo "<table width=100%><font color=white size=4><tr><th width=33%>Date</th><th width=66%>Status</th></tr></font>";
    foreach ($rows as $row)
    {
    	echo " <font color=".$row->color" size=4><tr><td>".$row->date."</td> <td>".$row->text."</td></tr></font>";
    }
    echo "</table>";
    ?>

Viewing 1 replies (of 1 total)