Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Allows a local table to "be" a remote table -- see here.
  2. No need to double-post; I've merged these topics... That's because if you where to echo your query (which you didn't) you'd see field LIKE '%%' which matches everything. You'll have to build the where clause dynamically.
  3. Yes, because you've left out the ON clauses for each JOIN... ON c.customer_id = a.artist_id ON i.album_id = a.album_id This is a double-post
  4. Which replace/
  5. You can't reuse IDs.
  6. You need to escape() the string your passing to JS.
  7. Yes, well, this is around the DST changeover date. I'm confused as to exactly what is happening now.
  8. So when it saved the "wrong" times, it thought it was right?
  9. Then you should use inner join for each step, assuming every link is always present. Drop the where clause, since it's not doing anything. And don't select * unless you actually need to.
  10. why is the customer table in there at all? don't you just want songs/albums?
  11. Linux will adjust this for you -- when you say one hour off, you mean dcorrectly adjusted for dst?
  12. Check your server settings as far as time zones are concerned; check mysql, too.
  13. I don't understand how you decided on that query.
  14. Contact your host and have them give you root access.
  15. This seems like an inherently bad idea, fighting for locks and such... besides, you can always use federated tables. And who told you to make a new db.
  16. why the left join then the inner join? what do you mean "one row"?
  17. Nope... only perl figures out what to do with barewords properly.
  18. Can't believe I didn't see that... I thought my example had quotes.
  19. Yes, you'll have to parse it out.... unless someone has already written a function to that do.
  20. It sounds like you can't find the array indexes that you made... I'm saying you should put them into a hash.
  21. You shouldn't keep them in an array -- the "uid" should be the key of the top hash. Once you've changed this, go through all of the keys in the mailSettings hash, make sure all your uids are there.
  22. Move it to the HAVING clause... and that != won't engage the index.
  23. You can't use aggregate functions in the WHERE clause.
  24. What won't be?
  25. I assume you're setting it / reading it... just convert 255 <-> FF. It's a simple hex-to-decimal function.
×
×
  • 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.