Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Why doesn't the header row have commas?
  2. Alias the expression instead: if(did = 0, u.usergroupid as gid, u.displaygroupid as gid) becomes if(did = 0, u.usergroupid, u.displaygroupid) as gid
  3. You'll need a table of answers too... don't limit it to 5.
  4. Well, a subquery in the field list can only return a *single* value -- and I don't see a CONCAT().
  5. That's a php logic issue.
  6. Does the query itself return the correct resultset?
  7. Well, a multi-valued insert would be faster, but that's up to you.
  8. I don't understand what you're trying to do.
  9. Huh? More detail, please... you're lucky I didn't delete this thread outright.
  10. Well, won't ech individual part have different properties & attributes, too?
  11. Sounds like you need UNION.
  12. My guess is that you're returning more than a single row in that subquery.
  13. Always good to feel appreciated (not me, per se, the whole forum).
  14. You mean like this? select i.* from g_images as i left join g_rates as r on (r.Gid = i.id) where r.Gid is null
  15. Post your solution, please.
  16. Then share with the rest of us.
  17. Where are you getting these magic numbers?
  18. Ignoring the fact that you're misusing GROUP BY for a minute, that's very odd -- what if you remove the where clause?
  19. Don't post login credentials -- or entire scripts, for that matter! Are you sure you've connected to the right DB?
  20. How?
  21. Run the EXPLAIN for each of those.
  22. You've not helped anyone but yourself... could you post the solution for the rest of us?
×
×
  • 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.