php - Table headers in the wrong direction -
i'm trying populate home html tables arrays in php, html knowledge far sufficient , wondering if me getting table headers go horizontally rather vertically?
php:
print "<table>"; print "<tr>"; ($x=0; $x <=10; $x++) { print "</tr>"; print "<th>$keys[$x]</th>"; print "<td>$step[$x]</td>"; }
outcome:
these headers want displayed horizontally rather vertically..
any appreciated always, thanks
first make row headers, after row values.
print "<table>"; print "<tr>"; ($x=0; $x <=10; $x++) { print "<th>$keys[$x]</th>"; } print "</tr>"; print "<tr>"; ($x=0; $x <=10; $x++) { print "<td>$step[$x]</td>"; } print "</tr>";
Comments
Post a Comment