I'm working on a website at the moment that uses both PHP and HTML is the files. Now iv created my classes ("Error","panel" and "ad"). What I'm looking for is a PHP script which I can implement to get data from a MySQL table and put it in a DIV in HTML.
For example:
<div class=error>
<div>
<?
IF $error == "1"
{
This will be where I want the code to add a new div to the html and display the error. It needs to use the "error" class.
}
?>
</div>
</div>
Can somebody help me here or point me in the right direction?
Thanks!


Sign In
Create Account



Back to top









