Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You don't use GROUP BY to select a specific row -- that's what WHERE clause is for.
  2. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=353570.0
  3. Are you talking about the query cache?
  4. Database hwo?
  5. As long as you don't need to "parse" the row as part of any query -- then there's nothing wrong with that at all.
  6. How about you post the solution for everyone's benefit....
  7. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=353406.0
  8. Sure, you can fake it -- but it will act faked forever.
  9. That makes no sense.
  10. Look up mysql_insert_id().
  11. In general, don't use abbreviations.
  12. SELECT CONCAT_WS('-', account.phone_country_code, account.phone_city_code, account.phone) AS phone FROM account As an added benefit, CONCAT_WS is happy to ignore NULLs -- unlike CONCAT, which barfs.
  13. What do you think that case statement is doing?
  14. I suppose you could use an IF() to determine this in a order by clause inline, but this is much cleaner.
  15. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=353305.0
  16. Benchmark it.
  17. Well, you definitely need the parentheses -- don't kid yourself. Also, since you're not using the LEFT JOIN, switch it to INNER JOIN. Is the query returning the right information or not?
  18. You marked this "solved", yet I don't see the solution.
  19. Are you going to make us _guess_ the error?
  20. Since you haven't shown us the query, we cant' help you.
  21. You can add AVG(rating) without incident.
  22. That looks like a join -- what doesn't work?
  23. Ahoy-hoy!
  24. Keep it in the DB.
  25. Are you sure the server is actually reading that startup file?
×
×
  • 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.