Populate php array into HTML table?

If the following things are true: 1. The number of rows will always be the same 2. The number of collums will always be the same Then you're probably better off just inserting parts of the array right into the table, like so.

Echo '' . $row0 . ''; echo '' .

$row1 . ''; echo '' . $row2 .''; echo '' .

$row4 . ''; echo ''; echo '' . $row5 .

''; echo '' . $row6 .''; echo '' . $row7 .

''; echo '' . $row8 . ''; echo ''; echo '' .

$row9 .''; echo '' . $row10 . ''; echo ''; echo '' .

$row12 . ''; echo '' . $row13 .''; echo ''; } // end foreach?

I think it would be easier if you just mixed the HTML and PHP together instead of trying to do it in a loop like what you're doing. Echo " {$arr0} {$arr1} {$arr2} {$arr3} {$arr9} {$arr10} {$arr12} {$arr13}.

If you're going to use the bracket ({ and }) syntax, then you need to demonstrate that it will be within an echo statement with quotes in PHP. Otherwise, that code is invalid HTML. – Archio Jul 24 at 18:39 Good idea.

Edited answer. – Mike Jul 24 at 19:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions