Forum Moderators: coopster

Message Too Old, No Replies

Build Tables in PHP

         

tonynoriega

4:23 pm on Jan 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i just wanted to know how to build a 3 row, 2 column table that will hold some sentences that are echoed back to the user that they successfully registered and they are now being redirected.

the only tables i found how to build are when you are pulling data from a database and need to build around the amount of data pulled.

this is more basic than that...

do i just use:

print <table>.....etc.

?

mehh

4:29 pm on Jan 27, 2007 (gmt 0)

10+ Year Member



$first_row_first_cell_content ="1";
$first_row_second_cell_content ="2";
$second_row_first_cell_content ="3";
$second_row_second_cell_content="4";
$third_row_first_cell_content ="5";
$third_row_second_cell_content ="6";
echo "<table><tr><td>";
echo $first_row_first_cell_content."</td><td>";
echo $first_row_second_cell_content."</td></tr><tr><td>";
echo $second_row_first_cell_content."</td><td>";
echo $second_row_second_cell_content."</td></tr><tr><td>";
echo $third_row_first_cell_content."</td><td>";
echo $third_row_second_cell_content."</td></tr></table>";

or:
?>
<table>
ect....
<?php