Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You can't do that... COLUMNS is for a given table only. Use the info_schema tables in MySQL 5 for anything else "fancy".
  2. REPAIR comes in all different flavours... which one are you running? Do you have a recent backup/
  3. Let's see the EXPLAIN output.
  4. I'm sure you *could* figure out a way to "assign" a round-robin list of mysql users.. but again, if your server can't handle the load, it won't help matters much.
  5. Sounds like a few too many fields.
  6. You can always simply update all of the sortorders -- and by that I mean re-create them on every save -- and then there's no incrementing. The 50-style increment is simpy for ease of maintenance, especially if you want to change them by hand.
  7. No kidding... I nearly threw up trying to figure out the equivalent of DATE(myDateTimeField)... all those "magic" numbers and CASTing.... ugh.
  8. Then check the actual dump file... unless some terminator or separator changed, I find this hard to believe.
  9. You basically want a sortorder... easiest way to do this is to guess how many items will be on the list, multiply by 100, then use increments of 50 between successive list items. This allows you to play around with renumbering easily for just one or two, or re-do the whole thing.
  10. Did you CHECK TABLEs?
  11. I've actually used that one, Barand... couldn't believe it had to be so "forced".
  12. Did you do the same for PHP?
  13. fenway

    search help

    If you want that where clause to apply to all of the unioned tables, you need to wrap them in parens.
  14. That subquery can only take a single value back... perhaps you need distinct.
  15. You'd have to break up the user query into part and search for exact matches...
  16. Sounds like you're getting some records twice...?
  17. Well, the question is really if your server can handle more than 50 at a time nayway.
  18. Yes, but that will change the UID and trigger a DELETE.
  19. fenway

    Add 1

    This doesn't work? update tbl_cart set cart_qty = cart_qty+1 where cart_id = '67'
  20. MySQL doesn't send mail....
  21. 1. I don't actually know what will happen if you try to do "INSERT INTO... SELECT WHERE 0"... but you're missing "SELECT". 2. That won't work. Why not "INSERT... ON DUPLICATE KEY UPDATE"?
  22. fenway

    Dates

    What column type is topic_time? UNSIGNED INT? What does FROM_UNIXTIME(topic_time) return? How are you determining that is it blank -- I don't see a column alias, are you running this from phpmyadmin? Also, apparently, FROM_UNIXTIME() takes an optional format parameter as the second argument, so you can do: FROM_UNIXTIME( topic_time, '%m %d %Y' ) Directly.
×
×
  • 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.