Posted by Toby A Inkster on 02/09/07 10:32
Steve wrote:
> Would work better???
Would work slower.
Assuming that "ml_lopp.loppnum" is indexed, then the database engine ought
to be able to pick out the minimum and maximum values a lot faster than
PHP will be able to. Even without indexes, chances are the database engine
will beat PHP.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
[Back to original message]
|