contra10 Posted February 6, 2009 Share Posted February 6, 2009 how can i wrap an image so that only a certain amount of images show in a line...I know u can do a textwrap for texts but is there one for images...i also tried to put images into a table and set a paramater for the image thinging that it would then move onto the next line...didnt' work heres my code <?php $lateq = ("SELECT * FROM `users` WHERE `image`='true'ORDER BY registered LIMIT 12") or die(mysql_error()); $la = mysql_query($lateq); while($latest = mysql_fetch_assoc($la)) { $lateusername= "{$latest['username']}"; $lateid= "{$latest['id']}"; echo "<table border='0' width='50' align='left'>"; echo "<tr>"; echo "<td align='center'>"; echo"<a href ='http://localhost/profile/index.php?user=$lateid' ><img src='http://localhost/image/imagereplace.php?id=$lateid'></a>"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo"<td width= '100' align='center' bgcolor='black'><a style='text-decoration:none' href ='http://localhost/profile/index.php?user=$lateid' ><FONT FACE='ariel' SIZE='3' color='#0094f7'><b> $lateusername</font></a></td>"; echo "</tr>"; echo"</table>"; } ?> Quote Link to comment Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 html/css not html - wrong forum Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.