Advanced Search

Results 1 to 2 of 2

Thread: Show images from this category (question)

  1. #1
    Join Date
    Oct 2012
    Posts
    84
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default Show images from this category (question)

    This code pulls images from my entire website.

    Code:
    
    <?php if($row['picfile']) { ?>
    
    <img src="<?php echo "$datadir[adpics]/$row[picfile]"; ?>"
    
    <?php } else { ?>
    	
    <?php } ?>
    What I want it to do is to pull images only from this category
    Code:
     $row['catid'] == 12
    My problem is I know how how to do "if catid == 12 then show images" but I don't know how to tell it to "show images only from catid == 12"

    Any help will be appreciated.

  2. #2
    Join Date
    Oct 2012
    Posts
    84
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Ok, I just figured that one out. I am not sure how to remove my question now. Sorry. Maybe the mod can remove it.

Similar Threads

  1. show latest record of specific category
    By newprog in forum PHP
    Replies: 1
    Last Post: 05-05-2011, 01:47 AM
  2. jQuery Drop Line Menu - show active category?
    By schnecksche in forum CSS
    Replies: 2
    Last Post: 09-07-2010, 02:24 PM
  3. Show 5 Most recent Images
    By crazy-wolfe in forum Looking for such a script or service
    Replies: 0
    Last Post: 03-30-2009, 07:40 PM
  4. slide show with 9 images
    By jurgenf in forum Looking for such a script or service
    Replies: 0
    Last Post: 01-21-2007, 12:55 PM
  5. Flex-Slide Show Images Won't Show
    By stillatlarge in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-24-2006, 09:01 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
  •