Jump to content

wraping an image


contra10

Recommended Posts

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>";
}
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.