Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Finding a random X of Y where X <<<< Y can never be fast.
  2. You can't use a primary key as a foreign key.
  3. First, never post login credentials to your DB. Second, there are countless tutorials.
  4. You can't refer to LEFT JOIN-ed column values in a WHERE clause, since they might be null -- you need these in the ON condition.
  5. You likely mean DECIMAL(10,2) -- no price has just one decimal place.
  6. That's because you don't have a full-text index on just those 2 columns.
  7. You have a trailing comma for no reason.
  8. Read about sanitizing mysql input.
  9. There are lots of good resources in the sticky.
  10. I feel like we just covered this question...
  11. Drop the group by and the sums, and bring them back one at a time.
  12. Add "UNSIGNED" to your column definition.
  13. You're talking about building replication.
  14. Perhaps if you followed the format of the sticky in my sig, others would be able to help.
  15. Seriously, read about caching.
  16. I highly doubt that made the auto-increment "stop working", but if you think your problem is "solved", mark it as asuch.
  17. Why not use mysql's MONTH() and DAY() functions?
  18. Sorry, I don't follow.
  19. You've asked 3 completely unrelated questions in the same topic. Prove that you can actually connect to the DB outside of php.
  20. Depends on a great many things -- two obvious ones are (a) db running? and (b) myisam or innodb?
  21. Huh? You have to have the data or the database.
  22. I don't follow... relational algebra has no concept of "previous row".
×
×
  • 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.