Jump to content

Whats Better Letting the Quqery do the work or PHP


cooldude832

Recommended Posts

As of Late i've seen a lot of people adding extra data to query like SUM DISTICT, AVERAGE etc etc to mysql queries, I've always quered out what I've needed and then sorted it out in post with a while loop and other logical commands.  First part of this question is those new special words only good in php 5 and are they better than dealing with the stuff in post or just quicker to write?

SQL is not PHP...so it has nothing to do with what PHP version you have. SQL is it's own separate language with its own separate versions.

 

I would say that if you can get what you want from the query, then get it that way. If you can't, obviously resort to PHP to handle it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.