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;
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;