Hi
I am trying to echo this info with the different rows in the database but when I try the following code only the first result shows up. Please can someone help
<?php
$con = mysql_connect("localhost","blar","blar");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("blar", $con);
$result = mysql_query("SELECT * FROM TABLE") or trigger_error(mysql_error().$sql);
$row = mysql_fetch_array($result); {
echo '<ul class="feature-list-smaller">
<li>
<a href="#" class="icon"><img src="image.png" width="52" height="52" alt="" /></a>
<div class="text">
<h4><a href="'. $row['Link'].'-contract.php">'. $row['Make'].' '. $row['Model'].'</a></h4>
</div>
</li>
</ul>';
}
echo "/n";
?>
Hope someone can help. Thanks in advance