PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Using a comma delimited file ("lab13.txt), I need to split by (,) and then output the results into a table that is 6 columns and 10 rows. I got as far as the "<td>". How do I get the table, the TR and the TD?
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
echo the opening <tr> before the inner foreach, and closing </tr> after it. The <table> goes before the outer foreach, and closing </table> goes after it.
Beware that split() uses regular expressions. Since you don't need their power here, I'd suggest using explode() instead.