Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Like so: select substring_index( trim( "www.mysite.com?id=" from "www.mysite.com?id=33&name=Brenda" ), '&', 1 )
  2. Why do you have duplicate usernames?
  3. You need a sortorder column -- nothing more.
  4. First, make sure the inner tables (before the union) execute as you expect. Second, consider summarizing this data, instead of pulling it in real-time.
  5. It makes it incredibly easy to link tables together when there's only a single unique column value required.
  6. Other than the fact that you're not quoting (or santizing, for that matter) your input value, it's hard to say without seeing the actual sql statements and errors.
  7. Sounds like parsing error.
  8. I don't see what's not working -- see the link in my sig.
  9. If you think that's sufficient information, you're mistaken.
  10. And what have you tried thusfar?
  11. Your mysql version has a CSV engine for this purpose.
  12. Define "not working".
  13. I'm all about surrogate keys -- having a UID for each record in a table is priceless, and adds little overhead (at least for non-clustered indexes).
  14. Huh?
  15. What makes you think this is mysql-related?
  16. Use mysql_real_escape_string().
  17. Then check the manual for how LIMIT works with a non-zero offset...
  18. Usual many-to-many relation table applies here.
  19. Yes, that's usually the case.
  20. Well, you can't start with IF... but why bother?
  21. Where's the many-to-many table?
  22. In general, more tables are free, at least until traffic becomes a serious issue.
  23. We'll pretend "artical" is a word for the moment.... are you talking about foreign keys? I don't follow.
  24. I don't follow.
  25. This is covered by many a tutorial.
×
×
  • 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.