Simple and quick question taht I am always struggling with.
I have a page called basket.php that is supposed to output the basket. So I have all the html and then it gets to the part in the page where I neeed to output the item sin the basket.
I have a class called Basket.php that I used to add items and delete items. Should I add a function called Output that outputs them all in a table? It's just I heard it was bad to output html in php like this:
echo "<table> <tr> <td style='.....'>";
echo "blahhh">;
So how do you normally output tables, images, links and other dynamic content?
Thanks.