PHP Not showing
-
For some reason the following code is not showing on my page at all:
$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>"; for ($i = 0; $i <= 25 ; ++$i) { $date = $row->date; $text = $row->text; $color = $row->color; if (!$query[$i]) {} else { echo " <font color=$color size=4><tr><td>$date</td> <td>$text</td></tr></font>"; } } echo "</table>";
I am not sure why. All the DB info is correct.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Not showing’ is closed to new replies.