I really need some help. I am trying to build a website and pull content from a mysql database. The div I am trying to populate is below. The problem I have is how do I incorporate the php code into the div?
<div class="cardetails">
<img src="img/carpic.jpg"/>
<p class="make"><a href="car.html">'model of car'<a></p>
<p class="price">£Price</p>
<div class="clear"></div>
</div>
$db = mysql_connect("localhost", "root", "Password1")
or die ("Couldn't connect to Server!");
$result = mysql_select_db("my_cars", $db)
or die ("Couldn't select Database!");
$query = "select img, make, price, from tbl_automatic WHERE MakeID = '7'";
$result = mysql_query($query,$db)
or die ("Couldn't execute query!");
Thanking you all in advance
mysql_functions as they are deprecated. Use PDO instead.