php - problem in showing 3 images in a row -
O people, I know this is a stupid question but I hung it in the resolve
I
code gt; sql_fetchrow ($ catinfo)) {echo '& lt; Td> & Lt; Ul id = "three-party" class = "press" & gt; & Lt; Li & gt; & Lt; Div class = "post-content" & gt; & Lt; One square = "zoom 1" href = "'. $ Galsettings [setImgDir].' / '. $ Cat [galCatLocation].' / '. $ Cat [galactic img].' & Gt; & lt; img src = "'. $ Galsettings [setImgDir]. ' / '. $ Cat [galCatLocation]. ' / '. $ Cat [Galactic IMG]. '"Alt =" Artistry (via PowerBook Parenren) "& gt; & lt; / a & gt; & lt; / div & gt;'; ($ I = 0; $ i & gt; ; 2; $ i ++) for {resonant "& lt; / Tr & gt; & Lt; Tr & gt; "}}} echo" & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Td> & Lt; / Tr & gt; & Lt; / Table> ";
But with this code everything goes wrong and does not break after every 3 images in the line
/ P>
(if $ I> 2) {resonant "& lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; ";}
But as you know, only image number 3 breaks tr
for my silly question really Sorry
try this:
echo " sql_fetchrow ($ catinfo)) {$ counter ++; echo & lt; td> & lt; ul id =" three -l "class =" press "> gt; div class =" post-content "> gt; class =" zoom 1 "href =" & # 39; & # $ Galsettings [setImgDir]. ' / '. $ Cat [galCatLocation]. ' / '. $ Cat [galactic img]. ' & Gt; & Lt; Img src = "'. $ Galsettings [setImgDir].' / '. $ Cat [galCatLocation].' / '. $ Cat [Galactic IMG].' "Alt =" Artistry (PowerBookParents) "& gt; & Lt; / A & gt; & Lt; / Div & gt; '; If ($ counter == 3) {echo '& lt; / Tr & gt; & Lt; Tr & gt; '; $ Counter = 0; }} Echo " ";
Comments
Post a Comment