This what i want http://slimhamdi.net/lina/demos/blog-post-dark.html
like this page.Problem is images not on right place also hr spouse to be longer and smaller.I tried too many to do it by self no luck.
<?php
$servername = "localhost";
$username = "root";
$password = "";
}
$count = 0;
$images = array("user1.jpg", "user2.jpg", "user3.jpg"); //
if( $result->num_rows > 0 ) {
// output data of each row
while( $row = $result->fetch_assoc() ) {
echo '<div id="mydiv4" style="margin-top:-1310px;padding-bottom:1px; "';
echo '<div class="comment-block">
'.( !empty( $images[$count] ) ? '<img src="images/blog/'.$images[$count].'">' : '').' <!-- Add the count to the images to use it as a key, add check to see if count is a key -->
<span class="name">'.$row['name'].'</span>
<span class="comment">'.$row['comment'].'</span>
</div>
</div>
</div>
</div>
';
$count++; // this usually goes at the end of a loop don't know if this produces the result you want
if( $count == 3 )
{
$count = 0; // Reset to 0 if 3 images have been shown
}
}
}
?>
Any help will be appricate