Porkie Posted June 21, 2009 Share Posted June 21, 2009 $sql = mysql_query("SELECT * FROM ORDER BY RAND() LIMIT 7"); echo '<table><tr>'; while ($row = mysql_fetch_array($sql)) { echo '<td>'; echo '<a href="http://www.getrecognized.co.uk/Newdirectory/video.php?id='.$row['id'].'" target="_blank"<img src="http://img.youtube.com/vi/'.$row['videoid'].'/default.jpg"width="120" height="100"/>'; echo '<br>'; echo $row['name']; } echo '</tr></table>'; i have this code which show 7 images with width 120 and height 100 however i basically want then to go from a smaller size and gradually get larger like a ratio sort of thing , is this possible? cheers Link to comment https://forums.phpfreaks.com/topic/163175-picture-viewer/ Share on other sites More sharing options...
ankhmor Posted June 22, 2009 Share Posted June 22, 2009 make it go in a loop and then every time a loop completes and some value to the image size the concept $image_size = 10 while{ code $image_size = $image_size + 30 } Link to comment https://forums.phpfreaks.com/topic/163175-picture-viewer/#findComment-860997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.