Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Um, no. You're likely not connecting to the right host/DB.
  2. Not really... I'm not suggesting you hard-code the number... I was confused by your suggestion to combine min and count. min of a single number is that number. Unless you mean the min of *all* places, not each palce.
  3. You don't reach 13K posts by accident.
  4. Then REPLACE() the characters you don't want, and then order by that.
  5. Wait a sec... if he eats 4 times at a location, then it's 4... the MIN() won't make it less. I'm confused.
  6. Neither do any of us... turn on error reporting, and as gizmola said, let's make sure we're talking about the same code here.
  7. Well, you could use a HAVING clause to make tally = whatever you want.
  8. That seems impossible... wait, it's it mysql_num_rows()?
  9. You can read more about this here...
  10. Perhaps you should read through this first.
  11. You have list =, not list .= -- you're replacing it, and only getting the last row's value.
  12. During "each" year? Then you need to group by year and pick the "last" week (with MAX(), I presume).
  13. It specifies "display width"... it's just silly. Data type specifies maximum size. And if you're referring to an auto-increment field, you probably want UNSIGNED, too.
  14. Do you know which ones you want to skip?
  15. That's a limitation on update a table from "itself".
  16. That's a bit vague...
  17. I know how to read code. And yes... that's precisely why it's not working -- don't renumber until you SAVE, the gaps don't matter. I'm moving this to the php foru
  18. Nothing limits the number of rows. Don't specify that (4).
  19. order is a reseved keyword... pick another name for the field, like sortorder.
  20. You talk about "gaps"... you can't have gaps until you have numbers, which means you're assigning them too soon.
  21. This really isn't a mysql issue... it's about how to manipulate sort orders; the fact that you're storing it a DB is another issue entirely (i.e. there's no logic on the mysql side, it's just an update). Easiest way is to ignore existing numbers, and update ALL of them agian.
  22. Yup, 4.1 doesn't care.
  23. Not a bad approximation.
×
×
  • 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.