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

enter image description here

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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -