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
https://forums.phpfreaks.com/topic/143996-wraping-an-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.