PDA

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



lunac
11-01-2004, 05:48 PM
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. (http://www.transitionsbirthdoulas.com/index/About_Doulas)

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):


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;

cr3ative
11-01-2004, 07:19 PM
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

lunac
11-02-2004, 12:37 AM
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.

lunac
11-02-2004, 12:43 AM
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.

lunac
11-16-2004, 07:16 PM
I'm sorry to bump this thread -- but this is the last thing I need to do on my client's site. Please help.