WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My table isn't showing :( (1 post)

  1. Michael Matias
    Member
    Posted 1 year ago #

    Well, I've created a page template, and the information is showing up right, but when I try to put the info into a table, all the page contents disappear!

    Thank you for your time!

    echo "<table>";
    			echo "<tbody>";
    			foreach($result as $row)
    			{
    				echo "<tr>";
    				echo "<td>";
    				echo $row->id;
    				//echo "     ";
    				echo "</td>";
    				echo "<td>";
    				echo $row->fname." ".$row->lname;
    				//echo "     ";
    				echo "</td>";
    				echo "<td>";
    				if($row->answer == '')
    					echo "(individual)";
    				else
    					echo $row->answer;
    				echo "</td>";
    				//echo "     ";
    				echo "<td>";
    				echo $row->city;
    				echo "</td>";
    				//echo "<br />";
    				echo "</tr>";
    			}
    			echo "</tbody>";
    			echo "</table>";

Topic Closed

This topic has been closed to new replies.

About this Topic