[php]while($row = mysqli_fetch_array($result))
{
if ($i<=2)
{
$title = $row[‘title’];
$image = $row[‘imagelarge’];
$owner = $row[‘owner’];
echo '<div id="craftlarge">';
echo '<div id="craftlargeimage">';
echo "<img src=\"".$image."\" width=300 height=300>";
echo "</div>";
echo '<div id="crafttitle">';
echo "$title";
echo "</div>";
echo '<div id="craftowner">';
echo "$owner";
echo "</div>";
echo nl2br($body);
echo "</div>";
$i++;
}
else if ($i<=8)
{
$title = $row['title'];
$image = $row['imagesmall'];
$owner = $row['owner'];
echo '<div id="craftsmall">';
echo '<div id="craftsmallimage">';
echo "<img src=\"".$image."\">";
echo "</div>";
echo '<div id="crafttitle">';
echo "$title";
echo "</div>";
echo '<div id="craftowner">';
echo "$owner";
echo "</div>";
echo nl2br($body);
echo "</div>";
$i++;
}
else{
$i=1;
}
}[/php]
I want this first two items loaded to format one way then the next 6 to format another. After this I would like them to repeat. It all seems to work, but it will not repeat. Any suggestions?