Results 1 to 5 of 5

Thread: pull text from database for random sort on "advanced gallery script" (help)

  1. #1
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question pull text from database for random sort on "advanced gallery script" (help)

    I'm using the "Advanced Gallery Script". The problem that I have is that my client has too many quotes to see in on session and each time the page loads it starts again at the beginning. So basically, only the first 5 or 6 quotes are viewed. See my client site.

    So I wanted to try putting the quotes from the database and then doing a random sort on them. BUT the quotes don't show up on the page -- even though they show in the source. So I'm not sure what is happening.

    here is my php code (without the sort):
    PHP Code:
    q*=*lib_executeQuery("SELECT * FROM ticker");

    while(
    $i*=*@mysql_fetch_assoc($q)){

    ****
    $tick*.=*"<div class=\"gallerycontent\"> \n <div class=\"quote\"> \n";

    ****
    $tick*.=*$i['quote']*.*"\n </div> \n";

    ****
    $tick*.=*"<div class=\"author\"> \n "*.*$i['author']*.*" \n </div> \n </div>";

    }****************



    echo*
    $tick
    Last edited by lunac; 11-01-2004 at 05:51 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Before we can offer support you must put the DD copyright notice here. For external script linking information and other, visit here.

    http://www.dynamicdrive.com/notice.htm

    Linking like you have to the external script is a violation of the terms of usage.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm sorry, I'm not sure what you're talking about... I'm not linking to anything. What?! I'm totally confused as to what your reply has to do with my question.

  4. #4
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, I see what you mean. I did keep the copyright in the js file itself. But now... per your regulations it's on the main page as well in the link code.

    NOW can you please answer my question.

  5. #5
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm sorry to bump this thread -- but this is the last thing I need to do on my client's site. Please help.

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
  •