Results 1 to 6 of 6

Thread: Scroll Images Date wise

  1. #1
    svtpooja
    Guest

    Scroll Images Date wise

    I want to scroll images. but those images stored in database.
    I want to scroll images date wise.
    Suppose I upload number of images today, then those images I only want to scoll on web site. Any body here who can help me?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Scroll Images Date wise

    along with the imges ,store the upload date. Whwn u retrive / scroll sort the images by the date field. Your problem will be solved.


  3. #3
    svtpooja
    Guest

    Re: Scroll Images Date wise

    thnx 4 ur help
    bt i just want to know how can i reterive images from database?
    i just want to store thm in a array.
    can u help me how can i store database images in array..


  4. #4
    svtpooja
    Guest

    Re: Scroll Images Date wise

    I think Nobody is there who can help me!!!
    Plz solve My problem!!!!!!!!!!


  5. #5
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: Scroll Images Date wise

    Hi svtpooja,

    I don't know ASP.NET.....But i have done it PHP. My question is if you run a query then u always get a resultset. Using the resultset you can easily get the array. In java they are using iterator.

    So take the image path from database and store it in array. Finally display the images one by one..I have done it php for ad banner images..Here is the sample code for your reference...

    Code:
    Scroll Images Date wise
                 $i) 
     {
     $imgname = mysql_result($res, $i, "Image_path"); 
     $Image = "../AdImages/".$imgname; 
     $Imgaeids.= "'$Image',";
     $i++;
     }
     $Imgaeids = preg_replace("/,$/", "", $Imgaeids);
     ?>
    


    Last edited by psuresh1982; 08-27-2007 at 02:47 AM.

  6. #6
    svtpooja
    Guest

    Smile Re: Scroll Images Date wise

    Thnx Suresh.....



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact