Log in

View Full Version : Resolved Need to show the same array twice



qwikad.com
09-04-2014, 04:10 AM
I need to show this array again, but when I copy and paste it for some reason it's not showing. Thank you for any / all help.




<?php
if (@mysql_num_rows($pres))
{
$i = 0;
?>
<?php
while ($row = mysql_fetch_array($pres))
{
$i++;
$imgsize = GetThumbnailSize("{$datadir[adpics]}/{$row[picfile]}", $tinythumb_max_width, $tinythumb_max_height);
?>
<img src="/timthumb.php?src=<?php echo "{$datadir[adpics]}/{$row[picfile]}"; ?>&w=590" id="adimg<?php echo $i; ?>" width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>">

<?php } ?>
<?php } ?>

qwikad.com
09-04-2014, 11:03 AM
Got it working. Just added mysql_data_seek($pres,0); and all went well.