Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. It seems to be joining the tables the wrong way... use straight join, or try running analyze.
  2. Which query is the problem?
  3. Make sure php error reporting is enabled.
  4. I'm not sure sure what you mean...
  5. Try: select s.*, c.* from classes as c inner join students on c on c.id. = s.classes_id
  6. What is your currect output?
  7. Don't double-post next time.
  8. See here.
  9. fenway

    Join Help

    You're missing a limit clause.
  10. Too little info to answer your question.
  11. That's full-text searching...
  12. You really shouldn't be storing lists in single fields.
  13. Yes, but how?
  14. You can't use DISTINCT like that... you have to find the most recent comment first, then join back.
  15. Sure... did it not work?
  16. How was this solved?
  17. Well, I don't know which query is the issue... but check mysql_error() after each one ... and echo each query, too.
  18. You can use SELECT INTO OUTFILE.
  19. You're echoing a statement... just echo the right-hand side: echo "select item_color from store_item_color where item_id = $item_id order by item_color";
  20. Start with error logs...
  21. Why is this running on the client side?
  22. This doesn't really sound like a DB question... though if that's all in one table, you need to normalize your tables.
  23. Don't quote table identifiers.
  24. You need to join the tables together using the FKs.
×
×
  • 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.