display 2 or 3 images per row using php mysql

后端 未结 2 1190
情歌与酒
情歌与酒 2020-12-22 09:29

hi i\'m disaplyed images from mysql db table but it displays on by one means one row has one image. but i need 3 or 4 image per row. my coding is below. please give some ide

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 10:10

    Do it in table like this, You might need to fix it a little bit, but it way how it will work

    ";
                   $count = 0;
                }
                if($count==0)
                   print "";
                print "";
            ?>
    
    
    "; ?>

    "; } if($count>0) print "

提交回复
热议问题