I have a "quote" div that should return a random quote via ajax when it
is clicked on. Some time ago I asked why I wasn't getting a new quote
and how to force a new quote. The response was to add 

{ nocache:Math.random() }

to the load call. That has been working fine but now I'm trying to
implement the same thing on another site and it no longer returns a new
quote. The only difference is that the new site has the quotes stored in
a mysql table instead of a flat file. Refreshing the page *does* get a
different quote. The php page does an include of the same file that the
load() function calls. I've tried mysql_free_resource() and
mysql_close() and still the ajax calls return the same quote. The sql is: 
    
        $result = mysql_query("select * from quotes order by rand() limit 1");

Any suggestions?

-- 
"He who has never hoped can never despair."
                -- George Bernard Shaw
    Rick Pasotto    [EMAIL PROTECTED]    http://www.niof.net

Reply via email to