ironman32 Posted March 24, 2009 Share Posted March 24, 2009 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 More sharing options...
Mark Baker Posted March 24, 2009 Share Posted March 24, 2009 <?php $shoulder_array[0] = "Millitary press"; ?> <html> <body> <table border="1"> <tr><td rowspan="2">Day 1</td> <td>Stretch/Warm up </td><td><?php echo $shoulder_array[0]; ?></td></tr> </table> </body> </html> Link to comment https://forums.phpfreaks.com/topic/150914-solved-php-array-into-an-html-table/#findComment-792817 Share on other sites More sharing options...
ironman32 Posted March 24, 2009 Author Share Posted March 24, 2009 Thank you Link to comment https://forums.phpfreaks.com/topic/150914-solved-php-array-into-an-html-table/#findComment-792859 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.