Topic awaiting preservation: PHP Shoutbox |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Canada |
posted 04-03-2004 17:19
Ok, I am coding a php shoutbox. Everything works fine. But when im displaying the shoutbox, I only want the 5 Most recent entries to show. code: $q="SELECT * FROM shoutbox order by date desc ";
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 04-03-2004 17:36
I don't know how your limit applies anyhow. You're appending it to the query string code: $strQuery =[...order by date desc];
|
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 04-03-2004 18:18
I don't have MySQL installed currently so I am not sure if this option will actually work, it might be breaking the rules completely. |
Bipolar (III) Inmate From: Canada |
posted 04-03-2004 22:07
Ok I got it working. The shoutbox loads into an I Frame. When the IFrame loads I want it to scroll to the bottom, to the latest post. How can I scroll an I Frame to the bottom of a window? |