Results 1 to 2 of 2

Thread: Need to show the same array twice

  1. #1
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default Need to show the same array twice

    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.



    Code:
    <?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 } ?>
    Last edited by qwikad.com; 09-04-2014 at 11:05 AM.

  2. #2
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    Got it working. Just added mysql_data_seek($pres,0); and all went well.

Similar Threads

  1. Replies: 3
    Last Post: 03-01-2012, 04:42 PM
  2. Resolved POST array empty, but GET array has data
    By Schmoopy in forum PHP
    Replies: 4
    Last Post: 06-14-2011, 08:22 PM
  3. hide/show array of div id's with 1 checkbox
    By whitemonkey2 in forum JavaScript
    Replies: 5
    Last Post: 06-21-2010, 11:38 AM
  4. Replies: 5
    Last Post: 08-20-2007, 03:02 AM
  5. Slide Show with "Dynamic Array"
    By wrgaphardt in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-04-2004, 08:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •