0) { echo "
# | \n"; //outputs the column headers, headers are the names of the fields in the databasae foreach (array_keys($line) as $col_value) { echo "\t$col_value | \n"; } echo "\t|
---|---|---|
$i | \n"; $j=0; foreach ($line as $col_value) { //outputs the first six columns if($j != "7") { echo "\t$col_value | \n"; $j++; } //outputs the last column which is the picture else { echo ''; } } echo " |