Jump to content

[SOLVED] Php array into an html table


ironman32

Recommended Posts

I'm having trouble putting data from an array list into a standard html table.

I made the assumption that I could just ouput the data by echoing the array into the table column, but this did not work.

<?php

$shoulder_array[0] = "Millitary press";

?>

<html>
<body>

<table border="1">

<tr><td rowspan="2">Day 1</td>
<td>Stretch/Warm up </td><td>$shoulder_array[0]</td></tr>


</table>


</body>
</html>

 

 

Any help/hints would be appreciated

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/150914-solved-php-array-into-an-html-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.