Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I don't know what "other things" you are talking about .... Are you in control of all of the queries being run on the DB? If so, run EXPLAINs on the frequent ones.
  2. I'd be surprised if someone hasn't already written out...
  3. Then "SELECT p.*, c.city_name FROM players AS p INNER JOIN cities AS c ON ( c.City_ID = p.City_ID ) WHERE.... " will work.
  4. It's not trivial to do substr_count() in mysql (at least without a UDF).
  5. No, it doesn't... forget it. You can add a JOIN on the city table... could you at least post the structure of both tables?
  6. Why not just a simple UNION?
  7. "ignore blank entires'/
  8. Well, you're using a prepared statement, and I'm trying to figure out what ends up in the "?"... and it's $values, the array.
  9. You can use "ldd" to figure out where it's supposed to be... but I sounds like the install failed.
  10. You can use TIME_FORMAT() as a MySQL function.
  11. You should simply do the comparison on a trimmed field value -- e.g. with replace().
  12. Nope... I want to know what's in $values when you execute the query.
  13. Assuming it's a proper DATE field, ordering by that field will order by year/month/day, correctly. You can use DATE_FORMAT() to extract whatever format you'd like.
  14. DB schema?
  15. SELECT * FROM table WHERE MATCH(...) AGAINST(...) ORDER BY MATCH(...) AGAINST(...)
  16. And $values is?
  17. Echo it _before_ you run db_execute().
  18. How about posting the syntax error?
  19. Hmmm... then I suppose CONCAT_WS() will work.
  20. I don't know what that means... you mean to say your CMS can only handle unnormalized tables?
  21. Yup... the slow query log.
  22. How?
  23. You don't need the parens.
  24. You order by the MATCH..AGAINST... simply repeat it.
  25. How was this defined (creater vs invokier)?
×
×
  • 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.