Using PHP How do you display data from mysql with a CSS style?
Feb 28th, 2009 | By KC | Category: My SQL RelatedI am creation the criticism system. At the moment, the interpretation is retrieved from mysql in to the layer.
I would similar to to have it so which we can request CSS styles to this retrieved data.
Any ideas?
When you echo the data, echo it as if you were writing the HTML code for it. For example:
<p class='comment'><?php echo $comment; ?></p>
Or alternatively
<?php echo "<p class='comment'>" . $comment . "</p>"; ?>