PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
use mysql_result() instead of mysql_fetch, and run a FOR loop, that way you have control over the current result i.e. if $i > 0 && $i <3 (images) and $i >=3 && $i <=6 (text):
<?php
for ($i=0; $i<mysql_num_rows($result); $i++){
if ($i < 3){
echo '<img src="images/'.mysql_result($result, $i).'" >';
}
else { ## if you change the limit make sure you add ELSE IF in here ($i >=3 && $i <=6) ##
//output text
}
}
?>