Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=317387.0
  2. update yourTable AS t1 SET t1.newField = ( SELECT ID FROM yourTable WHERE name = t1.name )
  3. Or add a "sortorder" column.
  4. Great. Now, back to your question -- which code snippet are we talking about/
  5. Well, then it should be pretty straightforward -- assuming each name has only a single ID, and vice versa. Add new columns called animal_id, theme_id, etc. to the appropriate tables -- these will ultimately replace the name lookups. Then simply issue an update to each table, and use a subquery to pull back the ID for each given name. Then you can drop the other columns -- once you've updated your application code, foreign keys, etc.
  6. You can't use GROUP BY and those title fields together.
  7. I'm guessing it's a delimeter issue.
  8. Are those IDs unique?
  9. I've locked your other two topics -- clearly, you're starting a new thread for each incremental change to the same script. Please keep the discussion in a SINGLE thread. Also, it's bad form to post an entire script.
  10. You're now onto your 3rd thread.
  11. That's because "l_word_id" is a SINGLE string literal value, not a list.
  12. Don't double-post.
  13. Neither -- it increments the month value by 1, nothing more.
  14. Where's the query?
  15. That doesn't make sense -- you got to the "mysql>" client prompt.
  16. You need to re-think your table design first.
  17. Why update the marks on-the-fly? Just calculate them at run-time.
  18. Then don't write queries manually.
  19. Is that output the desired output, or the sample input?
  20. That still doesn't answer my question -- I know you're searching two names, but does it have to match BOTH?
  21. You don't need an entire site, just a page to which you can't navigate with knowledge of the exact URL -- Google won't care.
  22. That means you're successfully logged in to the mysql client...
  23. Oh, it's impossible -- don't even begin to try. You don't need this number.
  24. And there's nothing wrong with a subselect to get the total count for everything - super easy.
  25. then "locate" mysql and run it from there.
×
×
  • 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.