I am trying to create a table that I can customize completely with php. I will admit, i have forgotten some of the materials due to lack of practice and "accidentally" deleting my original files that "should" answer my question.
Well anyways, how do you create a table that (by only using php) has an alphabetical header, each individual column gets manipulated by a loop, and all gets displayed in a csv.
So far, i have created this, pretty simple table:
<?php
$rows = 100 ; // define number of rows
$cols = 27;// define number of columns
echo "<table border='1'>";
for($tr=1;$tr<=$rows;$tr++){
echo "<tr>";
for($td=1;$td<=$cols;$td++){
echo "<td>".$tr." ".$td."</td>";
}
echo "</tr>";
}
echo "</table>";
?>
It is a pretty simple table so far...
For the header, i am trying to achieve this:
# a b c d ------> x y z
1
2
3
4
5
6
7
8
9
10
Each column has a unique bit of content, such as: a random letter, random number, etc.
Sorry guys, i am not asking you to create this for me, i am just looking for some advice/technique/resource/snippets to help me solve the problem.