Hi there, just a quick one (I think), a little stock on displaying PHP results in a div rather than a table. I seem to be managing to display one of the results ok but the rest are not showing, I want them all to display in their own divs. Please see the code below:
<?php
include ("connectionTest.php");
$product = mysql_query("SELECT pagename,content,metaTitle FROM pages");
$res = mysql_fetch_array($product);
{
echo '<div class="productPrice">'.$res['pagename'].'<br />
<span class="bigPrice">'.$res['metaTitle'].' </span><br /></div></a>';
}
?>
Can't work out what's wrong though. Always a great deal of help on this forum so look forward to a reply. Appreciate your time.