Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. We don't encourage posting entire scripts.... if you store the submitter ID with the data, then it should be trivial to filter it on the way out with a WHERE clause. Not sure if you're asking for mysql or php help.
  2. Are you sure you posted in the correct thread?
  3. The first error means your query failed -- use mysql_error() to determine what the problem was. If you'd like our help, show us both the query and the error.
  4. Well, then you need to specify this content id in your ON clause.
  5. ENUMs work too.
  6. What's (db IP)? Is that in your config file?
  7. Why so many queries?
  8. I would recommend proper JOIN syntax... it will serve you well in the long run.
  9. Yes, you could *try* and get them all back with a three-table join, but then I'd imagine that you'll likely have the usual layout questions & problems when iterating through a recordset that represents multiple entities.
  10. Sounds like you didn't switch your delimeter.
  11. Well, if you're trying to do this all in one query, you'll get stuck. Why not simply issue a simple one for each section, and then have PHP do the layout work?
  12. We don't need the code -- we need to see the output that isn't "distinct".
  13. Well, if you need to ensure you get back at least one group of three, then you'll have to loop through groups of three repeatedly... I suppose you could "loop" in an SP or in application code. A simple SUM() with LIMIT 3 can help you out.
  14. Sounds like you should be able to CONCAT() them together and simply check...
  15. Those don't total 120... what am I missing?
  16. Why not a LEFT JOIN... IS NULL? NOT EXISTS might work too.
  17. You could have easily mapped a long hexadecimal string.
  18. 4GB is a reasonable maximum to assume... but I wouldn't worry about it.
  19. What do you have so far?
  20. Since I'm not familiar with that script, you'll need to isolate the problem further.
  21. I have no idea what the mysql issue is.
  22. No, not really.
  23. Can you provide some sample output?
  24. If you're using mysql 5, there a CSV engine type.
×
×
  • 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.