Php arrange table content from horizontal to vertical?

Well you'd read the CSV file into a multidimensional array Consider that each line in the CSV file is now a column (goes up to down instead of left to right). This is called Transposing rows to columns For a table you'll need to loop through each row, not each column. So you create a loop within a loop as shown here: table border="0" cellspacing="1" cellpadding="1" class="sortable" border="1">Title Here Time:Value 1:Value 2:Value 3:Value 4:Value 5:Value 6:Value 7:Value 8:Value 9: $col) { echo ""; for($x=0; $x".

$mycsv$x$col_num. ""; echo ""; } }?

Well you'd read the CSV file into a multidimensional array. Consider that each line in the CSV file is now a column (goes up to down instead of left to right). This is called Transposing rows to columns.

For a table you'll need to loop through each row, not each column. So you create a loop within a loop as shown here: Title Here Time:Value 1:Value 2:Value 3:Value 4:Value 5:Value 6:Value 7:Value 8:Value 9: $col) { echo ""; for($x=0; $x". $mycsv$x$col_num.""; echo ""; } }?

> Try that out and let me know if it works.

I'm not exactly sure how your csv file is laid out, but it looks like you might need to store these values in separate arrays for the different digits and then loop through those arrays after you've finished reading the whole csv file. Can you show a brief sample of the csv file so I can get an idea of the data you're reading in?

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