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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.