Preserved Topic: mysql_fetch problem... (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Sweden |
posted 11-27-2001 09:34
Hey ! |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 11-27-2001 12:36
The poster has demanded we remove all his contributions, less he takes legal action. |
Nervous Wreck (II) Inmate From: Sweden |
posted 11-27-2001 17:08
hehe.. ye abit cryptic maybe =) |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-27-2001 17:22
Air: Welcome. I'm sure one of the experts will jump in and offer the correct solution but the way I'd do it, off the top of my head is: Do a sort of topics ORDER BY date DESC, grab the id and name (and pos. the name of the person who posted the message if you want) and then use a counter++ so that as you loop through you know when you've reached 3 - hold up I'd just throw a LIMIT 3 into the MySQL statement so that all the work is done by the MySQL (much quicker). |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 11-27-2001 17:36
Emperor knows of what he speaks. What I do is |
Nervous Wreck (II) Inmate From: Sweden |
posted 11-27-2001 18:09
aah.. my deepest thank you's ! |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 11-27-2001 21:30
BTW, we can usually give you more exact solutions to this kind of problem if you post your table structures. |