Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Try this: SELECT polls. * , poll_options. * FROM ( polls, poll_options ) LEFT JOIN poll_votes ON polls.poll_id = poll_votes.poll_id WHERE polls.poll_id =1 AND poll_options.poll_id = polls.poll_d You recently upgraded to v5, right?
  2. I believe it's via className.
  3. That has nothing to do with JS. Pick a set of quotes (single or doubles) and stick with it... keep escaping (you'll need to double-escape). Better yet, make some variables!
  4. You can simply group by "crop" in your join.
  5. This is just one of the changes that was "silently introduced" by v5... you may want to read the upgrade refman page.
  6. Yeah, my bad, I should have said all variable-length fields.
  7. Probably because there are other varchar columns....
  8. I'd like to see the mysql error message. And it looks like you really need to normalize that table!
  9. And ANALYZE too (since this deals with indexes directly)? Since you can recreate these data in another table with the same indexes (accordingly to your earlier post), it's hard to see what else is the issue here.
  10. Have you ANALYZE / OPTIMIZE tables recently?
  11. Like *all* client requests...
  12. or an auto_increment_increment value set.
  13. There are other reasons for using target other than "_blank".
  14. I think IE has an "autocomplete" attribute, but I don't know well this is respected.
  15. Change this: FROM tplss_matches M, tplss_matchtypes MT, tplss_opponents O LEFT OUTER JOIN tplss_previews P ON M.MatchID = P.PreviewMatchID "; To this: FROM ( tplss_matches M, tplss_matchtypes MT, tplss_opponents O ) LEFT OUTER JOIN tplss_previews P ON M.MatchID = P.PreviewMatchID ";
  16. Don't mess up your IDs in the DB... format this on the way out with LPAD().
  17. You can easily convert a SELECT statement into an update statement.
  18. I just looked at the query.. and you're using a HUGE offset.
  19. You can use GROUP BY on artist/title with a COUNT().
  20. First, why? Second, you can use a multi-table update statement in v4.1+.
  21. <input type="button" name="Submit" value="CLAIM YOUR KIT" on="return wrapperFunction(this.form)"> <script> fnction wrapperFunction( eForm ) { CancelChat(); return check(eForm,eForm.elements.length); } </script>
  22. You don't have to use them... but they are known to work, and yours aren't. So I'd start with working code, get your script working, then rewrite them.
  23. Also, from Diamond notes today:
  24. You can self-join and see if the ranges overlap.
  25. If you're really limited to 5-digit PIN (i.e 100K records), why not simply fill the entire table with 100K records and then auto-magically pick one? Better yet, have another table of *just* pins, generate the entire sequence, randomize the order (you can alter table order by rand()), and then assign a user_id to each record, and simply use "SELECT pin from pin_table WHERE user_id IS NOT NULL LIMIT 1"... voila!
×
×
  • 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.